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
2017-02-14 10:58:25 +01:00

21 lines
446 B
Bash
Executable file

#!/bin/bash
# Exit on command errors and treat unset variables as an error
set -u
# Source app helpers
. /usr/share/yunohost/helpers
db_user=freshrss
db_name=freshrss
domain=$(ynh_app_setting_get freshrss domain)
ynh_mysql_drop_db $db_name
ynh_mysql_drop_user $db_user
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
sudo yunohost app ssowatconf