1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpbb_ynh.git synced 2024-09-03 19:56:36 +02:00
phpbb_ynh/scripts/remove

20 lines
517 B
Text
Raw Normal View History

2015-03-07 13:58:05 +01:00
#!/bin/bash
app=phpBB
2015-03-07 14:27:36 +01:00
db_user=$app
db_name=$app
root_pwd=$(sudo cat /etc/yunohost/mysql)
2015-03-07 13:58:05 +01:00
domain=$(sudo yunohost app setting $app domain)
2015-03-07 15:08:41 +01:00
# Remember to keep $root_pwd without a gap with -p otherwise it doesn't work
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
2015-03-07 13:58:05 +01:00
sudo rm -rf /var/www/$app
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
2015-04-13 15:11:23 +02:00
sudo rm -f /etc/php5/fpm/pool.d/$domain\_$app.conf
2015-03-07 13:58:05 +01:00
sudo service php5-fpm restart
sudo service nginx reload
sudo yunohost app ssowatconf