mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
23 lines
450 B
Bash
Executable file
23 lines
450 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
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
db_user=$app
|
|
db_name=$app
|
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
|
|
ynh_mysql_drop_db $db_name
|
|
ynh_mysql_drop_user $db_user
|
|
|
|
sudo rm -rf /var/www/$app
|
|
sudo rm -rf /etc/cron.d/$app
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
sudo service nginx reload
|
|
sudo yunohost app ssowatconf
|