diff --git a/scripts/install b/scripts/install index 14e5238..34329d2 100644 --- a/scripts/install +++ b/scripts/install @@ -241,6 +241,8 @@ ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + ynh_systemd_action --service_name="${app}-server" --action="restart" --log_path="systemd" --line_match="Application startup complete" + ynh_script_progression --message="PACKAGE_CHECK_EXEC sleep 60s..." sleep 60 fi diff --git a/scripts/restore b/scripts/restore index c38eaf2..dbc0f9c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -154,6 +154,8 @@ ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + ynh_systemd_action --service_name="${app}-server" --action="restart" --log_path="systemd" --line_match="Application startup complete" + ynh_script_progression --message="PACKAGE_CHECK_EXEC sleep 60s..." sleep 60 fi diff --git a/scripts/upgrade b/scripts/upgrade index 6762b9c..e24542e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -257,6 +257,8 @@ ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + ynh_systemd_action --service_name="${app}-server" --action="restart" --log_path="systemd" --line_match="Application startup complete" + ynh_script_progression --message="PACKAGE_CHECK_EXEC sleep 60s..." sleep 60 fi