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-07-23 16:04:17 +02:00

13 lines
No EOL
371 B
Bash
Executable file

#!/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
sudo rm -rf /etc/cron.d/freshrss
sudo rm -f /etc/nginx/conf.d/$domain.d/freshrss.conf
sudo service nginx reload