From 58dbc567124035e4c78a57d44354cb674c612a44 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 1 Feb 2021 21:43:23 +0300 Subject: [PATCH] auto update new-style config.php on container boot --- src/app/startup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/startup.sh b/src/app/startup.sh index f02ba85..b3b9c84 100755 --- a/src/app/startup.sh +++ b/src/app/startup.sh @@ -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