Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
10f9bfbf
Commit
10f9bfbf
authored
Jan 07, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start VPN if required.
parent
3134addb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
slapprepare/slapprepare/slapprepare.py
slapprepare/slapprepare/slapprepare.py
+9
-3
No files found.
slapprepare/slapprepare/slapprepare.py
View file @
10f9bfbf
...
...
@@ -564,9 +564,15 @@ def slapprepare():
configureNtp
()
# Remove use of openvpn if not explicitely defined
if
not
config
.
force_vpn
and
not
config
.
dry_run
:
os
.
remove
(
os
.
path
.
join
(
config
.
slapos_configuration
,
'openvpn-needed'
))
if
not
config
.
dry_run
:
openvpn_needed_file_path
=
os
.
path
.
join
(
config
.
slapos_configuration
,
'openvpn-needed'
)
if
config
.
force_vpn
:
# Force use of openvpn
open
(
openvpn_needed_file_path
,
'w'
)
else
:
# Forbid use of openvpn if not explicitely defined
os
.
remove
(
openvpn_needed_file_path
)
# Enable and run slapos-boot-dedicated.service
_call
([
'systemctl'
,
'enable'
,
'slapos-boot-dedicated.service'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment