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
|
2015-02-14 09:59:35 +01:00
|
|
|
sudo service ffsync stop
|
|
|
|
sudo update-rc.d ffsync remove
|
|
|
|
sudo rm /etc/init.d/ffsync
|
2015-02-16 11:59:22 +01:00
|
|
|
sudo rm /etc/logrotate.d/ffsync
|
2015-02-14 09:59:35 +01:00
|
|
|
|
|
|
|
sudo service nginx reload
|
2014-11-15 17:24:32 +01:00
|
|
|
sudo userdel ffsync
|
2015-02-14 18:39:36 +01:00
|
|
|
sudo delgroup ffsync
|