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

[fix] Use SECURE_REMOVE fonction

This commit is contained in:
magikcypress 2017-04-03 14:38:59 +02:00
parent 7bb87c5d0c
commit df99bf020e

View file

@ -13,7 +13,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get "$app" domain)
# 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"