From a10b4ee943d8f49fb49daf5e588b76c917b4376a Mon Sep 17 00:00:00 2001 From: abeudin Date: Sat, 14 Feb 2015 09:59:35 +0100 Subject: [PATCH] Update remove --- scripts/remove | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/remove b/scripts/remove index eeb1d66..83e5a1d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -8,10 +8,10 @@ domain=$(sudo yunohost app setting ffsync domain) mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;" sudo rm -rf /opt/yunohost/ffsync sudo rm -f /etc/nginx/conf.d/$domain.d/ffsync.conf -sudo rm -f /etc/uwsgi/apps-enabled/ffsync.ini -sudo rm -f /etc/uwsgi/apps-available/ffsync.ini +sudo service ffsync stop +sudo update-rc.d ffsync remove +sudo rm /etc/init.d/ffsync -sudo service uwsgi stop -sudo killall uwsgi -sudo service uwsgi start + +sudo service nginx reload sudo userdel ffsync