mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
openvpn: Always write the latest server configuration on setup
This takes care of the case where a user has tried the "setup" step and failed. The new configuration will overwrite the old one. Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
3a579e2d72
commit
43e7633868
@ -147,9 +147,6 @@ def subcommand_upgrade(_):
|
||||
|
||||
def _create_server_config():
|
||||
"""Write server configuration."""
|
||||
if os.path.exists(SERVER_CONFIGURATION_PATH):
|
||||
return
|
||||
|
||||
with open(SERVER_CONFIGURATION_PATH, 'w') as file_handle:
|
||||
file_handle.write(SERVER_CONFIGURATION)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user