From 688e0ccd116dfc649c22658d8963fb6f36b8265b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Feb 2021 19:33:27 +0300 Subject: [PATCH] copy config.php earlier so it gets chown-ed to app:app --- src/app/startup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/startup.sh b/src/app/startup.sh index 55a0ef9..af677d8 100755 --- a/src/app/startup.sh +++ b/src/app/startup.sh @@ -44,6 +44,9 @@ for d in cache lock feed-icons plugins.local themes.local; do mkdir -p $DST_DIR/$d done +cp ${SCRIPT_ROOT}/config.docker.php $DST_DIR/config.php +chmod 644 $DST_DIR/config.php + chown -R $OWNER_UID:$OWNER_GID $DST_DIR \ /var/log/php8 @@ -64,8 +67,6 @@ elif ! $PSQL -c 'select * from ttrss_version'; then $PSQL < /var/www/html/tt-rss/schema/ttrss_schema_pgsql.sql fi -cp ${SCRIPT_ROOT}/config.docker.php $DST_DIR/config.php - # this was previously generated rm -f $DST_DIR/config.php.bak