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
2014-10-03 17:16:55 +02:00

13 lines
No EOL
370 B
Bash
Executable file

#!/bin/bash
db_user=freshrss
db_name=freshrss
root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo yunohost app setting freshrss domain)
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
sudo rm -rf /var/www/freshrss
sudo rm -rf /etc/cron.d/freshrss
sudo rm -f /etc/nginx/conf.d/$domain.d/freshrss.conf
sudo service nginx reload