From 9885aa665e7244d366de53a95b4114b14f76ff50 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 2 Nov 2023 23:59:35 +0300 Subject: add dev compose stuff --- .docker/app/startup.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to '.docker/app') diff --git a/.docker/app/startup.sh b/.docker/app/startup.sh index 6c5f721..3c57f25 100644 --- a/.docker/app/startup.sh +++ b/.docker/app/startup.sh @@ -18,15 +18,17 @@ export PGPASSWORD=$DB_PASS [ ! -e /var/www/html/index.php ] && cp ${SCRIPT_ROOT}/index.php /var/www/html -if [ ! -d $DST_DIR ]; then - rsync -a \ - $SRC_DIR/ $DST_DIR/ -else - rsync -a --delete \ - --exclude sessions \ - --exclude lib/fonts \ - --exclude db \ - $SRC_DIR/ $DST_DIR/ +if [ -z $SKIP_RSYNC_ON_STARTUP ]; then + if [ ! -d $DST_DIR ]; then + rsync -a \ + $SRC_DIR/ $DST_DIR/ + else + rsync -a --delete \ + --exclude sessions \ + --exclude lib/fonts \ + --exclude db \ + $SRC_DIR/ $DST_DIR/ + fi fi if [ ! -e $DST_DIR/index.php ]; then -- cgit v1.2.3