Merge pull request #62 from klutchell/master

fix substitution of APP_URL when provided
This commit is contained in:
aptalca 2020-09-17 15:40:33 -04:00 committed by GitHub
commit a7309cad9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))