From 461778ae25902d3046f44f8e7634a5ea95431080 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Fri, 29 Sep 2017 14:00:31 +0200 Subject: [bug] create /usr/local/sbin folder if it does not exist - Resolves: #9084 --- src/leap/bitmask/vpn/helpers/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/leap/bitmask/vpn/helpers/__init__.py b/src/leap/bitmask/vpn/helpers/__init__.py index 57847e16..de7ba06b 100644 --- a/src/leap/bitmask/vpn/helpers/__init__.py +++ b/src/leap/bitmask/vpn/helpers/__init__.py @@ -21,6 +21,10 @@ if IS_LINUX: polkit_from = _config.get_bitmask_polkit_policy_path() openvpn_from = _config.get_bitmask_openvpn_path() + sbin = '/usr/local/sbin' + if not os.path.isdir(sbin): + os.makedirs(sbin) + copyfile(helper_from, helper_to) chmod(helper_to, 0744) -- cgit v1.2.3