Skip to content
Snippets Groups Projects
Commit c6aa892a authored by Kali Kaneko's avatar Kali Kaneko
Browse files

get openvpn from snap

parent 37724c47
No related branches found
No related tags found
No related merge requests found
Pipeline #18795 failed
...@@ -364,13 +364,13 @@ def get_openvpn_bin(): ...@@ -364,13 +364,13 @@ def get_openvpn_bin():
Return the path for either the system openvpn or the one the Return the path for either the system openvpn or the one the
bundle has put there. bundle has put there.
""" """
if os.path.isfile(OPENVPN_SYSTEM_BIN): if os.environ.get('SNAP') and if os.path.isfile(OPENVPN_SNAP_BIN):
return OPENVPN_SYSTEM_BIN
# the snap 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 return OPENVPN_SNAP_BIN
if os.path.isfile(OPENVPN_SYSTEM_BIN):
return OPENVPN_SYSTEM_BIN
# the bundle option should also be removed from the debian. # the bundle option should also be removed from the debian.
if os.path.isfile(OPENVPN_LEAP_BIN): if os.path.isfile(OPENVPN_LEAP_BIN):
return OPENVPN_LEAP_BIN return OPENVPN_LEAP_BIN
...@@ -780,7 +780,7 @@ def firewall_start(args): ...@@ -780,7 +780,7 @@ def firewall_start(args):
elif QUBES_VER == 3: elif QUBES_VER == 3:
run("systemctl", "restart", "qubes-firewall.service") run("systemctl", "restart", "qubes-firewall.service")
toggle_ipv6('disable') # toggle_ipv6('disable')
def firewall_stop(): def firewall_stop():
...@@ -860,7 +860,7 @@ def firewall_stop(): ...@@ -860,7 +860,7 @@ def firewall_stop():
"chain (maybe it is already destroyed?)", exc) "chain (maybe it is already destroyed?)", exc)
ok = False ok = False
toggle_ipv6('enable') # toggle_ipv6('enable')
if not (ok or ipv4_chain_exists or ipv6_chain_exists): if not (ok or ipv4_chain_exists or ipv6_chain_exists):
raise Exception("firewall might still be left up. " raise Exception("firewall might still be left up. "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment