From b509a5f353f706fab31189b352d6ffa24bd1c3e5 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Wed, 1 Feb 2017 16:55:51 +0100 Subject: [bug] fix bitmask-root path --- src/leap/bitmask/vpn/launchers/linux.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/leap/bitmask/vpn') diff --git a/src/leap/bitmask/vpn/launchers/linux.py b/src/leap/bitmask/vpn/launchers/linux.py index d39b3b13..f99c5c78 100644 --- a/src/leap/bitmask/vpn/launchers/linux.py +++ b/src/leap/bitmask/vpn/launchers/linux.py @@ -59,8 +59,14 @@ class LinuxVPNLauncher(VPNLauncher): class BITMASK_ROOT(object): def __call__(self): - return ("/usr/local/sbin/bitmask-root" if flags_STANDALONE else - "/usr/sbin/bitmask-root") + _global = '/usr/sbin/bitmask-root' + _local = '/usr/local/sbin/bitmask-root' + if os.path.isfile(_global): + return _global + elif os.path.isfile(_local): + return _local + else: + return 'bitmask-root' class OPENVPN_BIN_PATH(object): def __call__(self): -- cgit v1.2.3