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

24 lines
450 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
2017-02-14 10:58:25 +01:00
set -u
2017-02-13 23:55:58 +01:00
# Source app helpers
. /usr/share/yunohost/helpers
2017-03-05 18:02:17 +01:00
app=$YNH_APP_INSTANCE_NAME
db_user=$app
db_name=$app
domain=$(ynh_app_setting_get $app domain)
2017-02-13 23:55:58 +01:00
ynh_mysql_drop_db $db_name
ynh_mysql_drop_user $db_user
2014-07-23 15:52:50 +02:00
2017-03-05 18:02:17 +01:00
sudo rm -rf /var/www/$app
sudo rm -rf /etc/cron.d/$app
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
2014-07-23 15:52:50 +02:00
2017-02-13 23:55:58 +01:00
sudo service nginx reload
sudo yunohost app ssowatconf