From 43e76338683f2be8b8c042e2a189a32b67637a04 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Mon, 19 Nov 2018 13:26:06 +0530 Subject: [PATCH] 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 Reviewed-by: James Valleroy --- actions/openvpn | 3 --- 1 file changed, 3 deletions(-) diff --git a/actions/openvpn b/actions/openvpn index 464b151b5..14a0d95a7 100755 --- a/actions/openvpn +++ b/actions/openvpn @@ -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)