mirror of
https://git.tt-rss.org/fox/ttrss-docker-compose
synced 2025-07-11 12:19:53 +02:00
move container-related files outside of /
This commit is contained in:
parent
1beb1d2d59
commit
4342387078
5 changed files with 19 additions and 18 deletions
|
@ -21,7 +21,7 @@ SRC_DIR=/src/tt-rss/
|
|||
|
||||
export PGPASSWORD=$TTRSS_DB_PASS
|
||||
|
||||
[ ! -e /var/www/html/index.php ] && cp /index.php /var/www/html
|
||||
[ ! -e /var/www/html/index.php ] && cp ${SCRIPT_ROOT}/index.php /var/www/html
|
||||
|
||||
if [ ! -d $DST_DIR ]; then
|
||||
rsync -aP \
|
||||
|
@ -66,12 +66,12 @@ elif ! $PSQL -c 'select * from ttrss_version'; then
|
|||
fi
|
||||
|
||||
if [ ! -s $DST_DIR/config.php ]; then
|
||||
cp /config.docker.php $DST_DIR/config.php
|
||||
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 /config.docker.php $DST_DIR/config.php
|
||||
cp ${SCRIPT_ROOT}/config.docker.php $DST_DIR/config.php
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue