From 2f293c9c598bd0d4df032a539849c8d0058059eb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Feb 2021 19:31:24 +0300 Subject: [PATCH] copy config.php earlier so it gets chown-ed to app:app --- app/startup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/startup.sh b/app/startup.sh index dd605aa..c869e32 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -54,6 +54,9 @@ else git pull origin master || echo error: failed to update plugin repository. fi +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 @@ -72,8 +75,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