2015-02-17 03:39:33 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
db_user=diaspora
|
|
|
|
db_name=diaspora
|
|
|
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
|
|
|
domain=$(sudo yunohost app setting diaspora domain)
|
|
|
|
|
2015-02-17 11:13:33 +01:00
|
|
|
sudo service diaspora_ynh stop
|
2015-02-17 03:39:33 +01:00
|
|
|
|
|
|
|
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
|
|
|
|
|
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/diaspora.conf
|
|
|
|
|
|
|
|
sudo service nginx reload
|
|
|
|
|
|
|
|
sudo deluser --remove-home diaspora
|
2015-02-17 11:13:33 +01:00
|
|
|
sudo rm -rf /var/www/diaspora
|
2015-02-17 03:39:33 +01:00
|
|
|
|
2015-02-17 11:13:33 +01:00
|
|
|
sudo update-rc.d -f diaspora_ynh remove
|
|
|
|
sudo rm -f /etc/init.d/diaspora_ynh
|