diff options
author | Kali Kaneko <kali@leap.se> | 2017-08-28 17:19:12 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-30 16:18:50 -0400 |
commit | b9fff80022e15560151f523015cb5bf73bd3cff1 (patch) | |
tree | e9c770266003d47b77244f8588c6c2ccf8dc8390 /src/leap/bitmask/vpn/helpers | |
parent | 04bce963c2314dc9b21bd86224e75c22aae39d70 (diff) |
[tests] do not fail if helper installed in debian path
Diffstat (limited to 'src/leap/bitmask/vpn/helpers')
-rw-r--r-- | src/leap/bitmask/vpn/helpers/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/helpers/__init__.py b/src/leap/bitmask/vpn/helpers/__init__.py index 719fc5e9..42cff4a3 100644 --- a/src/leap/bitmask/vpn/helpers/__init__.py +++ b/src/leap/bitmask/vpn/helpers/__init__.py @@ -12,6 +12,7 @@ if IS_LINUX: helper_to = '/usr/local/sbin/bitmask-root' polkit_to = '/usr/share/polkit-1/actions/se.bitmask.bundle.policy' + deb_polkit_to = '/usr/share/polkit-1/actions/se.bitmask.policy' openvpn_to = '/usr/local/sbin/leap-openvpn' def install(): @@ -34,7 +35,9 @@ if IS_LINUX: def check(): helper = os.path.exists(helper_to) - polkit = os.path.exists(polkit_to) + polkit = ( + os.path.exists(polkit_to) or + os.path.exists(deb_polkit_to)) return helper and polkit if IS_MAC: |