From 9da8d37115aabae3c7c648af5ef654e46c4675cb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 31 Jan 2021 21:32:16 +0300 Subject: [PATCH] emit a warning if old-style config.php is detected --- src/app/startup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/startup.sh b/src/app/startup.sh index 247c361..37ed245 100755 --- a/src/app/startup.sh +++ b/src/app/startup.sh @@ -71,6 +71,9 @@ if [ ! -s $DST_DIR/config.php ]; then cat >> $DST_DIR/config.php << EOF define('NGINX_XACCEL_PREFIX', '/tt-rss'); EOF +else + egrep 'SELF_URL_PATH.*getenv' $DST_DIR/config.php || \ + echo -e "\nWARNING: you're using old-style config.php, overrides via .env will not work.\n" >/dev/stderr fi # this was previously generated