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