2013-12-12 12:15:19 +01:00

11 lines
301 B
Bash

#!/bin/bash
db_user=ffsync
db_name=ffsync
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 ;"
sudo rm -rf /var/www/ffsync
sudo rm -f /etc/nginx/conf.d/$domain.d/ffsync.conf