1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ffsync_ynh.git synced 2024-09-03 18:26:38 +02:00
ffsync_ynh/scripts/remove

18 lines
489 B
Text
Raw Normal View History

2013-12-12 12:12:22 +01:00
#!/bin/bash
2013-12-12 12:15:19 +01:00
db_user=ffsync
db_name=ffsync
2013-12-12 12:12:22 +01:00
root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo yunohost app setting ffsync domain)
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
2014-11-15 17:24:32 +01:00
sudo rm -rf /opt/yunohost/ffsync
2013-12-12 12:12:22 +01:00
sudo rm -f /etc/nginx/conf.d/$domain.d/ffsync.conf
2014-12-30 17:33:21 +01:00
sudo rm -f /etc/uwsgi/apps-enabled/ffsync.ini
sudo rm -f /etc/uwsgi/apps-available/ffsync.ini
2014-11-15 17:24:32 +01:00
sudo service uwsgi stop
sudo killall uwsgi
sudo service uwsgi start
sudo userdel ffsync