diff --git a/scripts/change_url b/scripts/change_url index 80fb431..3eee1ec 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -18,6 +18,11 @@ ynh_script_progression --message="Stopping a systemd service..." ynh_systemd_action --service_name=$app --action="stop" --log_path="$install_dir/log/production.log" +if [ -f "$install_dir/script/hypnotoad.pid" ]; then + ynh_print_info --message="Removing the PID file..." + ynh_secure_remove --file="$install_dir/script/hypnotoad.pid" +fi + #================================================= # MODIFY URL IN NGINX CONF #=================================================