From 2df47eb2f7a0cb86cb5d1852ab585baf137ee7d0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Sun, 10 Mar 2019 23:37:32 +0100 Subject: [PATCH] add service to secure upgrade --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index fc02990..f468665 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -132,6 +132,8 @@ ynh_abort_if_errors if [ -e "/etc/systemd/system/uwsgi-app@.service" ] then systemctl stop "uwsgi-app@$app" + # if somehow the service doesn't exist, add it + yunohost service add "uwsgi-app@$app.service" --log "/var/log/uwsgi/app/$app" yunohost service remove "uwsgi-app@$app.service" ynh_secure_remove "/etc/systemd/system/uwsgi-app@.socket" ynh_secure_remove "/etc/systemd/system/uwsgi-app@.service"