From ba2a5cefe99eba802476a57fe282226af5a53a09 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 1 Mar 2018 13:30:17 +0100 Subject: [pkg] add snap openvpn to bitmask-root --- src/leap/bitmask/vpn/helpers/linux/bitmask-root | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/leap/bitmask/vpn/helpers') diff --git a/src/leap/bitmask/vpn/helpers/linux/bitmask-root b/src/leap/bitmask/vpn/helpers/linux/bitmask-root index 6b9870e7..3f6c1e74 100755 --- a/src/leap/bitmask/vpn/helpers/linux/bitmask-root +++ b/src/leap/bitmask/vpn/helpers/linux/bitmask-root @@ -82,7 +82,7 @@ def get_no_group_name(): return None -VERSION = "8" +VERSION = "9" SCRIPT = "bitmask-root" NAMESERVER_TCP = "10.41.0.1" NAMESERVER_UDP = "10.42.0.1" @@ -106,6 +106,7 @@ OPENVPN_GROUP = get_no_group_name() LEAPOPENVPN = "LEAPOPENVPN" OPENVPN_SYSTEM_BIN = "/usr/sbin/openvpn" # Debian location OPENVPN_LEAP_BIN = "/usr/local/sbin/leap-openvpn" # installed by bundle +OPENVPN_SNAP_BIN = "/snap/bin/riseup-vpn.openvpn" # installed by snap FIXED_FLAGS = [ "--setenv", "LEAPOPENVPN", "1", @@ -359,7 +360,11 @@ def get_openvpn_bin(): if os.path.isfile(OPENVPN_SYSTEM_BIN): return OPENVPN_SYSTEM_BIN - # the bundle option should be removed from the debian package. + # the snap option should be removed from the debian package. + if os.path.isfile(OPENVPN_SNAP_BIN): + return OPENVPN_SNAP_BIN + + # the bundle option should also be removed from the debian. if os.path.isfile(OPENVPN_LEAP_BIN): return OPENVPN_LEAP_BIN -- cgit v1.2.3