You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
489 B

11 years ago
#!/bin/bash
11 years ago
db_user=ffsync
db_name=ffsync
11 years ago
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 ;"
10 years ago
sudo rm -rf /opt/yunohost/ffsync
11 years ago
sudo rm -f /etc/nginx/conf.d/$domain.d/ffsync.conf
10 years ago
sudo rm -f /etc/uwsgi/apps-enabled/ffsync.ini
sudo rm -f /etc/uwsgi/apps-available/ffsync.ini
10 years ago
sudo service uwsgi stop
sudo killall uwsgi
sudo service uwsgi start
sudo userdel ffsync