summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-09-29 14:00:31 +0200
committerKali Kaneko <kali@leap.se>2017-09-29 14:00:31 +0200
commit461778ae25902d3046f44f8e7634a5ea95431080 (patch)
tree3c6b397c0452e780b07f1d694cd9efcbe3e7480c
parent40d0b29d44d634defc9fac566890f83ebe16c80d (diff)
[bug] create /usr/local/sbin folder if it does not exist
- Resolves: #9084
-rw-r--r--src/leap/bitmask/vpn/helpers/__init__.py4
1 files changed, 4 insertions, 0 deletions
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)