diff options
Diffstat (limited to '.docker/app/startup.sh')
-rw-r--r-- | .docker/app/startup.sh | 20 |
1 files changed, 11 insertions, 9 deletions
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 |