mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
[fix] stop service before removing all the files
Let's be less rude to this poor supervisord :-)
This commit is contained in:
parent
c35bff5ded
commit
161ee92fb5
1 changed files with 3 additions and 1 deletions
|
@ -14,6 +14,9 @@ db_user=$app
|
||||||
db_name=$app
|
db_name=$app
|
||||||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||||||
|
|
||||||
|
# Stop service
|
||||||
|
sudo supervisorctl stop budget
|
||||||
|
|
||||||
# Drop database
|
# Drop database
|
||||||
ynh_mysql_drop_db $db_name
|
ynh_mysql_drop_db $db_name
|
||||||
ynh_mysql_drop_user $db_user
|
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
|
sudo rm /etc/nginx/conf.d/$domain.d/ihatemoney.conf
|
||||||
|
|
||||||
# Restart services
|
# Restart services
|
||||||
sudo supervisorctl stop budget
|
|
||||||
sudo service supervisor force-reload
|
sudo service supervisor force-reload
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
Loading…
Add table
Reference in a new issue