From 9de8bf21af3997b8da62534546ebb22050d97461 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Thu, 22 Feb 2024 23:27:24 +0100 Subject: [PATCH] Update change_url --- scripts/change_url | 5 +++++ 1 file changed, 5 insertions(+) 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 #=================================================