Start VPN if required.

parent 3134addb
......@@ -564,9 +564,15 @@ def slapprepare():
# 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,
if config.force_vpn:
# Force use of openvpn
open(openvpn_needed_file_path, 'w')
# Forbid use of openvpn if not explicitely defined
# Enable and run slapos-boot-dedicated.service
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment