Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leap
bitmask-dev
Commits
c6aa892a
Commit
c6aa892a
authored
6 years ago
by
Kali Kaneko
Browse files
Options
Downloads
Patches
Plain Diff
get openvpn from snap
parent
37724c47
No related branches found
No related tags found
No related merge requests found
Pipeline
#18795
failed
6 years ago
Stage: test
Stage: e2e
Stage: publish
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/leap/bitmask/vpn/helpers/linux/bitmask-root
+6
-6
6 additions, 6 deletions
src/leap/bitmask/vpn/helpers/linux/bitmask-root
with
6 additions
and
6 deletions
src/leap/bitmask/vpn/helpers/linux/bitmask-root
+
6
−
6
View file @
c6aa892a
...
@@ -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.
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment