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

22 lines
447 B
Text
Raw Normal View History

2014-07-23 15:52:50 +02:00
#!/bin/bash
2017-02-13 23:55:58 +01:00
# Exit on command errors and treat unset variables as an error
set -eu
# Source app helpers
. /usr/share/yunohost/helpers
2014-07-23 15:52:50 +02:00
db_user=freshrss
db_name=freshrss
2017-02-13 23:55:58 +01:00
domain=$(ynh_app_setting_get freshrss domain)
ynh_mysql_drop_db $db_name
ynh_mysql_drop_user $db_user
2014-07-23 15:52:50 +02:00
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
2017-02-13 23:55:58 +01:00
sudo service nginx reload
sudo yunohost app ssowatconf