diff --git a/scripts/change_url b/scripts/change_url index e74175d..1fdf39e 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -69,7 +69,7 @@ fi #================================================= ynh_script_progression --message="Stopping a systemd service..." --time --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --line_match="Stopped WireGuard UI" --log_path="systemd" +ynh_systemd_action --service_name=$app --action="stop" --line_match="Stopped WireGuard UI" --log_path="systemd" --timeout=30 #================================================= # MODIFY URL IN NGINX CONF @@ -113,7 +113,7 @@ fi #================================================= ynh_script_progression --message="Starting a systemd service..." --time --weight=1 -ynh_systemd_action --service_name=$app --action="start" --line_match="http server started" --log_path="systemd" +ynh_systemd_action --service_name=$app --action="start" --line_match="http server started" --log_path="systemd" --timeout=30 #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index 5955510..d742264 100644 --- a/scripts/install +++ b/scripts/install @@ -187,7 +187,7 @@ yunohost service add wireguard_ui --description "WireGuard UI" --log "/var/log/$ 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" +ynh_systemd_action --service_name=wireguard_ui --action="start" --line_match="http server started" --log_path="systemd" --timeout=30 #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 1c1abb1..ea14736 100644 --- a/scripts/restore +++ b/scripts/restore @@ -132,7 +132,8 @@ ynh_restore_file --origin_path=$(jq -r ".config_file_path" $final_path/db/server #================================================= 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" +ynh_systemd_action --service_name=wireguard_ui --action="start" --line_match="http server started" --log_path="systemd" --timeout=30 +sleep 5 #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 58647a0..9704782 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -105,7 +105,7 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=wireguard_ui --action="stop" --line_match="Stopped WireGuard UI" --log_path="systemd" +ynh_systemd_action --service_name=wireguard_ui --action="stop" --line_match="Stopped WireGuard UI" --log_path="systemd" --timeout=30 systemctl disable --now --quiet wireguard.path ynh_systemd_action --service_name=wireguard --action="stop" @@ -217,7 +217,8 @@ yunohost service add wireguard_ui --description "WireGuard UI" --log "/var/log/$ 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" +ynh_systemd_action --service_name=wireguard_ui --action="start" --line_match="http server started" --log_path="systemd" --timeout=30 +sleep 5 #================================================= # RELOAD NGINX