From 161ee92fb515c64957b2bf73b6a39db2d17e090e Mon Sep 17 00:00:00 2001 From: Jocelyn Delalande Date: Tue, 20 Jun 2017 16:27:48 +0200 Subject: [PATCH] [fix] stop service before removing all the files Let's be less rude to this poor supervisord :-) --- scripts/remove | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 29ec67b..dca5379 100755 --- a/scripts/remove +++ b/scripts/remove @@ -14,6 +14,9 @@ db_user=$app db_name=$app root_pwd=$(sudo cat /etc/yunohost/mysql) +# Stop service +sudo supervisorctl stop budget + # Drop database ynh_mysql_drop_db $db_name ynh_mysql_drop_user $db_user @@ -27,7 +30,6 @@ sudo rm /etc/supervisor/conf.d/ihatemoney.conf sudo rm /etc/nginx/conf.d/$domain.d/ihatemoney.conf # Restart services -sudo supervisorctl stop budget sudo service supervisor force-reload sudo service nginx reload sudo yunohost app ssowatconf