auto update new-style config.php on container boot

pull/5/head
Andrew Dolgov 4 years ago
parent 52b7a1260f
commit 58dbc56712

@ -68,8 +68,11 @@ fi
if [ ! -s $DST_DIR/config.php ]; then
cp /config.docker.php $DST_DIR/config.php
else
egrep -q 'SELF_URL_PATH.*getenv' $DST_DIR/config.php || \
if egrep -q 'SELF_URL_PATH.*getenv' $DST_DIR/config.php; then
echo -e "\nWARNING: you're using old-style config.php, overrides via .env will not work.\n" >/dev/stderr
else
cp /config.docker.php $DST_DIR/config.php
fi
fi
# this was previously generated

Loading…
Cancel
Save