From edb92d0c219f4502238a2046ef83ce5c43fecb3c Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 22 Mar 2021 17:02:49 +0100 Subject: [PATCH] Do not start WireGuard service automatically It will most likely fail, reboot is usually required after DKMS installation --- scripts/install | 2 +- scripts/restore | 3 +-- scripts/upgrade | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 7f177e1..fc7d9d2 100644 --- a/scripts/install +++ b/scripts/install @@ -202,4 +202,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Installation of $app completed" --last +ynh_script_progression --message="Installation of $app completed. You may need to reboot your server before being able to start the WireGuard service." --last diff --git a/scripts/restore b/scripts/restore index ddadba3..c2c202e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -137,7 +137,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=wireguard_ui --action="start" --line_match="http server started" --log_path="systemd" --timeout=30 sleep 5 -ynh_systemd_action --service_name=wg-quick@wg0 --action="start" --line_match="Started WireGuard via wg-quick(8) for wg0." --log_path="systemd" --timeout=30 #================================================= # GENERIC FINALIZATION @@ -152,4 +151,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Restoration completed for $app" --last +ynh_script_progression --message="Restoration completed for $app. You may need to reboot your server before being able to start the WireGuard service." --last diff --git a/scripts/upgrade b/scripts/upgrade index 5c80bcd..988fe37 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -217,7 +217,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service ynh_systemd_action --service_name=wireguard_ui --action="start" --line_match="http server started" --log_path="systemd" --timeout=30 sleep 5 -ynh_systemd_action --service_name=wg-quick@wg0 --action="start" --line_match="Started WireGuard via wg-quick(8) for wg0." --log_path="systemd" --timeout=30 #================================================= # RELOAD NGINX @@ -230,4 +229,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Upgrade of $app completed" --last +ynh_script_progression --message="Upgrade of $app completed. You may need to reboot your server before being able to start the WireGuard service." --last