Skip to content

Commit a7309ca

Browse files
authored
Merge pull request #62 from klutchell/master
fix substitution of APP_URL when provided
2 parents 8e1aeb9 + 4c6c423 commit a7309ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/etc/cont-init.d/50-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if [ "${DB_USER}" ];
5858
fi
5959

6060
# set appurl if detected
61-
[[ "${APP_URL}" ]] && sed -i "s,#\sAPP_URL.*,APP_URL=${APP_URL},g" /config/www/.env
61+
[ -n "${APP_URL}" ] && sed -r "s,([#\s]*)?APP_URL=.*,APP_URL=${APP_URL},g" -i /config/www/.env
6262

6363
# check for the mysql endpoint for 30 seconds
6464
END=$((SECONDS+30))

0 commit comments

Comments
 (0)