diff --git a/scripts/change_url b/scripts/change_url index b5baad5..9faa09e 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -14,7 +14,7 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Stopping a systemd service..." -ynh_systemd_action --service_name=$app-api --action="stop" --log_path="/var/log/$app/$app-api.log" --line_match="Shutdown completed" +ynh_systemd_action --service_name=$app-api --action="stop" --log_path="/var/log/$app/$app-api.log" #================================================= # MODIFY URL IN NGINX CONF @@ -39,7 +39,7 @@ chmod 600 "$install_dir/config.properties" #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app-api --action="start" --log_path="/var/log/$app/$app-api.log" --line_match="HTTP Server is listening on" +ynh_systemd_action --service_name=$app-api --action="start" --log_path="/var/log/$app/$app-api.log" --line_match="Database connection is ready!" #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 08ec226..3860c6d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,7 +24,7 @@ chmod 640 "/var/log/$app" #================================================= ynh_script_progression --message="Stopping a systemd service..." -ynh_systemd_action --service_name=$app-api --action="stop" --log_path="/var/log/$app/$app-api.log" --line_match="Shutdown completed" +ynh_systemd_action --service_name=$app-api --action="stop" --log_path="/var/log/$app/$app-api.log" ynh_systemd_action --service_name=$app-proxy --action="stop" #=================================================