1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grav_ynh.git synced 2024-09-03 19:16:01 +02:00
grav_ynh/scripts/remove
2017-03-08 00:50:23 +01:00

24 lines
No EOL
658 B
Bash

#!/bin/bash
# Exit on command errors and treat unset variables as an error
set -u
source .fonctions # Loads the generic functions usually used in the script
source /usr/share/yunohost/helpers # Source app helpers
# Retrieves application info.
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
REMOVE_BDD $app # Deleting the database and the associated user.
SECURE_REMOVE '/var/www/$app' # Removing the application folder
REMOVE_NGINX_CONF # Deleting the nginx configuration
REMOVE_FPM_CONF # Deleting the php-fpm pool configuration
# Reload SSOwat configuration
sudo yunohost app ssowatconf
echo -e "\e[0m" # Restore normal color