From 0cff37e48367a89697fcfee1d02865936ca59055 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Mon, 3 Apr 2017 14:34:39 +0200 Subject: [PATCH] [fix] Use SECURE_REMOVE fonction --- scripts/remove | 2 +- scripts/restore | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 8317d32..ffcedba 100644 --- a/scripts/remove +++ b/scripts/remove @@ -23,7 +23,7 @@ ynh_mysql_drop_user $dbuser || true #fi # Delete app directory and configurations -sudo rm -rf "/var/www/${app}" +SECURE_REMOVE '/var/www/$app' # Delete directory application sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf" sudo rm -f "/etc/php5/fpm/conf.d/20-${app}.ini" [[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf" diff --git a/scripts/restore b/scripts/restore index 79de2bf..8a50902 100644 --- a/scripts/restore +++ b/scripts/restore @@ -65,6 +65,12 @@ sudo cp -a ./nginx.conf "${nginx_conf}" sudo cp -a ./php-fpm.conf "${phpfpm_conf}" sudo cp -a ./php-fpm.ini "${phpfpm_ini}" +# Set ssowat config +if [ "$is_public" = "No" ]; +then + ynh_app_setting_delete $app skipped_uris +fi + # Reload services sudo systemctl reload php5-fpm sudo systemctl reload nginx