mirror of
https://git.tt-rss.org/fox/ttrss-docker-compose
synced 2025-06-09 21:09:52 +02:00
auto update new-style config.php on container boot
This commit is contained in:
parent
fdd507c179
commit
0cded4bb78
1 changed files with 4 additions and 1 deletions
|
@ -73,8 +73,11 @@ fi
|
||||||
if [ ! -s $DST_DIR/config.php ]; then
|
if [ ! -s $DST_DIR/config.php ]; then
|
||||||
cp /config.docker.php $DST_DIR/config.php
|
cp /config.docker.php $DST_DIR/config.php
|
||||||
else
|
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
|
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
|
fi
|
||||||
|
|
||||||
# this was previously generated
|
# this was previously generated
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue