mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
23 lines
504 B
Text
23 lines
504 B
Text
|
#!/bin/bash
|
||
|
|
||
|
db_user=diaspora
|
||
|
db_name=diaspora
|
||
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||
|
domain=$(sudo yunohost app setting diaspora domain)
|
||
|
|
||
|
sudo service diaspora stop
|
||
|
|
||
|
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
||
|
|
||
|
sudo rm -rf /var/www/diaspora
|
||
|
sudo rm -f /etc/nginx/conf.d/$domain.d/diaspora.conf
|
||
|
|
||
|
sudo service nginx reload
|
||
|
|
||
|
sudo deluser --remove-home diaspora
|
||
|
|
||
|
sudo update-rc.d -f diaspora remove
|
||
|
sudo rm -f /etc/init.d/diaspora
|
||
|
sudo rm -f /etc/diaspora.conf
|
||
|
|