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:
parent
524deb037f
commit
dd9b168716
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ ynh_mysql_drop_user "$dbuser" 2>/dev/null || true
|
|||
domain=$(ynh_app_setting_get "$app" domain)
|
||||
|
||||
# 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"
|
||||
[[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue