1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Fix /var/www/$app remove !

C'est pas testé par contre. A vérifier quand même.
This commit is contained in:
Maniack Crudelis 2017-02-19 17:03:45 +01:00 committed by GitHub
parent 524deb037f
commit dd9b168716

View file

@ -23,7 +23,9 @@ ynh_mysql_drop_user "$dbuser" 2>/dev/null || true
domain=$(ynh_app_setting_get "$app" domain) domain=$(ynh_app_setting_get "$app" domain)
# Delete app directory and configurations # Delete app directory and configurations
sudo rm -rf "/var/www/${app}" [[ "/var/www" =~ "/var/www/${app}" ]] \
|| (test -n "$app" && sudo rm -r "/var/www/${app}" )
sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf" sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf"
[[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf" [[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf"