1
0
Fork 0
mirror of https://git.tt-rss.org/fox/ttrss-docker-compose synced 2025-06-12 14:59:53 +02:00

always copy config.php

This commit is contained in:
Andrew Dolgov 2021-02-11 18:55:04 +03:00
parent 36a78a8b2b
commit 7681e1c8f3

View file

@ -74,15 +74,7 @@ elif ! $PSQL -c 'select * from ttrss_version'; then
cat /var/www/html/tt-rss/schema/ttrss_schema_pgsql.sql | sed 's/tt-rss.spb.ru/tt-rss.org/g' | $PSQL
fi
if [ ! -s $DST_DIR/config.php ]; then
cp ${SCRIPT_ROOT}/config.docker.php $DST_DIR/config.php
else
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 ${SCRIPT_ROOT}/config.docker.php $DST_DIR/config.php
fi
fi
cp ${SCRIPT_ROOT}/config.docker.php $DST_DIR/config.php
# this was previously generated
rm -f $DST_DIR/config.php.bak