2015-04-28 17:32:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-02-21 04:04:26 +01:00
|
|
|
# Exit on command errors and treat unset variables as an error
|
2017-02-21 04:23:47 +01:00
|
|
|
set -u
|
2017-02-21 04:04:26 +01:00
|
|
|
|
2017-03-08 00:26:58 +01:00
|
|
|
source .fonctions # Loads the generic functions usually used in the script
|
|
|
|
source /usr/share/yunohost/helpers # Source app helpers
|
2016-08-30 00:22:47 +02:00
|
|
|
|
2017-03-08 00:26:58 +01:00
|
|
|
# Retrieves application info.
|
2016-09-20 01:51:28 +02:00
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
2017-02-23 13:45:48 +01:00
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
2016-09-20 01:51:28 +02:00
|
|
|
|
2017-03-08 00:26:58 +01:00
|
|
|
REMOVE_BDD $app # Deleting the database and the associated user.
|
2016-09-20 01:51:28 +02:00
|
|
|
|
2017-03-08 00:26:58 +01:00
|
|
|
SECURE_REMOVE '/var/www/$app' # Removing the application folder
|
2016-09-20 01:51:28 +02:00
|
|
|
|
2017-03-08 00:26:58 +01:00
|
|
|
REMOVE_NGINX_CONF # Deleting the nginx configuration
|
2016-08-30 00:22:47 +02:00
|
|
|
|
2017-03-08 00:26:58 +01:00
|
|
|
REMOVE_FPM_CONF # Deleting the php-fpm pool configuration
|
2015-04-28 17:32:31 +02:00
|
|
|
|
2017-03-08 00:26:58 +01:00
|
|
|
# Reload SSOwat configuration
|
2016-09-20 01:51:28 +02:00
|
|
|
sudo yunohost app ssowatconf
|
2015-04-28 18:48:20 +02:00
|
|
|
|
2016-09-20 01:51:28 +02:00
|
|
|
echo -e "\e[0m" # Restore normal color
|