diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-02-20 20:39:43 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-02-23 00:41:25 +0100 |
commit | 25ad6f18057ad7951f74eff35afe25d220952efa (patch) | |
tree | bfcb70fde93f73f993a3ae42f7c3def73464e105 /src/leap/bitmask/vpn/helpers | |
parent | 9d7de357a114812c0ed1e04b97ef59b41a40fa47 (diff) |
[refactor] rename eip to vpn
Diffstat (limited to 'src/leap/bitmask/vpn/helpers')
-rw-r--r-- | src/leap/bitmask/vpn/helpers/__init__.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/leap/bitmask/vpn/helpers/__init__.py b/src/leap/bitmask/vpn/helpers/__init__.py index dc249286..8905adfd 100644 --- a/src/leap/bitmask/vpn/helpers/__init__.py +++ b/src/leap/bitmask/vpn/helpers/__init__.py @@ -1,4 +1,4 @@ -from os import remove +from os import remove, chmod from shutil import copyfile import sys @@ -14,15 +14,12 @@ if IS_LINUX: helper_from = _config.get_bitmask_helper_path() polkit_from = _config.get_bitmask_polkit_policy_path() copyfile(helper_from, helper_to) - os.chmod(helper_to, 0744) + chmod(helper_to, 0744) copyfile(polkit_from, polkit_to) def uninstall(): - try: - remove(helper_to) - remove(polkit_to) - except: - raise + remove(helper_to) + remove(polkit_to) def main(): |