From 16801071fc1cbd6069aa71537e72862c3a2a6a83 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 31 Jan 2021 21:31:35 +0300 Subject: [PATCH] emit a warning if old-style config.php is detected --- app/startup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/startup.sh b/app/startup.sh index d5053bd..a02d819 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -1,4 +1,4 @@ -#!/bin/sh -ex +#!/bin/sh -e while ! pg_isready -h $DB_HOST -U $DB_USER; do echo waiting until $DB_HOST is ready... @@ -76,6 +76,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