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

13 lines
371 B
Text
Raw Normal View History

2014-07-23 15:52:50 +02:00
#!/bin/bash
db_user=freshrss
db_name=freshrss
root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo yunohost app setting roundcube domain)
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
sudo rm -rf /var/www/freshrss
2014-07-23 16:04:17 +02:00
sudo rm -rf /etc/cron.d/freshrss
2014-07-23 15:52:50 +02:00
sudo rm -f /etc/nginx/conf.d/$domain.d/freshrss.conf
2014-07-23 16:04:17 +02:00
sudo service nginx reload