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:
parent
c32c8e895a
commit
2dfd4b482c
1 changed files with 1 additions and 4 deletions
|
@ -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 \
|
||||||
|
|
Loading…
Add table
Reference in a new issue