fix substitution of APP_URL when provided

https://github.com/linuxserver/docker-bookstack/issues/58
This commit is contained in:
Kyle Harding 2020-08-18 10:08:56 -04:00
parent fd86e7485f
commit 4c6c4234cd
No known key found for this signature in database
GPG Key ID: 81A8AABB2D8AA6C5

View File

@ -58,7 +58,7 @@ if [ "${DB_USER}" ];
fi
# set appurl if detected
[[ "${APP_URL}" ]] && sed -i "s,#\sAPP_URL.*,APP_URL=${APP_URL},g" /config/www/.env
[ -n "${APP_URL}" ] && sed -r "s,([#\s]*)?APP_URL=.*,APP_URL=${APP_URL},g" -i /config/www/.env
# check for the mysql endpoint for 30 seconds
END=$((SECONDS+30))