2015-02-01 20:20:54 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-03-07 15:30:01 +01:00
|
|
|
app=rainloop
|
|
|
|
|
|
|
|
db_user=$app
|
|
|
|
db_name=$app
|
|
|
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
2015-02-01 20:20:54 +01:00
|
|
|
domain=$(sudo yunohost app setting rainloop domain)
|
|
|
|
|
2015-03-07 15:30:01 +01:00
|
|
|
mysql -u root -p $root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
|
|
|
sudo rm -rf /var/www/$app
|
|
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
sudo rm -f /etc/php5/fpm/pool.d/$app.conf
|
2015-02-01 20:20:54 +01:00
|
|
|
|
|
|
|
sudo service php5-fpm restart
|
|
|
|
sudo service nginx reload
|
2015-02-06 19:42:21 +01:00
|
|
|
sudo yunohost app ssowatconf
|
|
|
|
|