From 20279da147892cd3b381d910ddb0fa91f941edef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 19 Aug 2019 23:41:09 +0200 Subject: [PATCH] Fix upgrade from old version --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3998849..125d4c8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -27,7 +27,8 @@ ynh_clean_setup () { ynh_restore_upgradebackup # restore it if the upgrade fails } -ynh_systemd_action --service_name "uwsgi-app@$app.service" --action stop +test -e /etc/uwsgi/apps-available/$app.ini && \ + ynh_systemd_action --service_name "uwsgi-app@$app.service" --action stop #================================================= # STANDARD UPGRADE STEPS