2014-07-23 15:52:50 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-02-13 23:55:58 +01:00
|
|
|
# Source app helpers
|
|
|
|
. /usr/share/yunohost/helpers
|
|
|
|
|
2018-10-21 17:55:39 +02:00
|
|
|
#=================================================
|
|
|
|
# MANAGE SCRIPT FAILURE
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
# Exit if an error occurs during the execution of the script
|
|
|
|
ynh_abort_if_errors
|
|
|
|
|
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
|
2018-07-07 15:43:31 +02:00
|
|
|
sudo rm -f /etc/php/7.0/fpm/pool.d/$app.conf
|
2014-07-23 15:52:50 +02:00
|
|
|
|
2017-02-13 23:55:58 +01:00
|
|
|
sudo service nginx reload
|
2018-07-07 15:43:31 +02:00
|
|
|
sudo service php7.0-fpm reload
|
2017-02-13 23:55:58 +01:00
|
|
|
sudo yunohost app ssowatconf
|