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

[fix] Do not attempt to fix path app setting at upgrade

This commit is contained in:
Jérôme Lebleu 2016-05-10 22:57:56 +02:00
parent c32c8e895a
commit 2dfd4b482c

View file

@ -17,12 +17,9 @@ dbuser=$app
# Retrieve app settings # Retrieve app settings
domain=$(ynh_app_setting_get $app domain) domain=$(ynh_app_setting_get $app domain)
path=$(ynh_app_setting_get $app path) path=$(ynh_app_setting_get $app path)
path=${path%/}
dbpass=$(ynh_app_setting_get $app mysqlpwd) dbpass=$(ynh_app_setting_get $app mysqlpwd)
# Check - and fix as needed - path setting
[[ "${path: -1}" = / ]] \
&& path=${path%/} && ynh_app_setting_set $app path $path
# Check destination directory # Check destination directory
DESTDIR="/var/www/$app" DESTDIR="/var/www/$app"
[[ ! -d $DESTDIR ]] && die \ [[ ! -d $DESTDIR ]] && die \