1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pgadmin_ynh.git synced 2024-09-03 19:56:38 +02:00

Correcly cleanup legacy uwsgi

This commit is contained in:
Josué Tille 2024-03-11 23:09:23 +01:00
parent a6e9912a46
commit 293a61bb99
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -19,6 +19,11 @@ ynh_script_progression --message="Stopping a systemd service..." --weight=1
if [ -f "/etc/uwsgi/apps-available/$app.ini" ]; then if [ -f "/etc/uwsgi/apps-available/$app.ini" ]; then
ynh_systemd_action --service_name "uwsgi-app@$app.service" --action stop ynh_systemd_action --service_name "uwsgi-app@$app.service" --action stop
systemctl disable "uwsgi-app@$app.service"
yunohost service remove "uwsgi-app@$app" || true
ynh_secure_remove --file="/etc/uwsgi/apps-available/$app.ini"
ynh_secure_remove --file="/etc/systemd/system/uwsgi-app@$app.service.d"
else else
ynh_systemd_action --service_name "$app.service" --action stop ynh_systemd_action --service_name "$app.service" --action stop
fi fi