summaryrefslogtreecommitdiff
path: root/.docker/app
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-11-02 23:59:35 +0300
committerAndrew Dolgov <[email protected]>2023-11-02 23:59:35 +0300
commit9885aa665e7244d366de53a95b4114b14f76ff50 (patch)
treecb72b9a6c43ed8f97731b54fe7bb95b9cd86763b /.docker/app
parent879ee8b1ae6aef4a59821317236c4e3740f96f14 (diff)
add dev compose stuff
Diffstat (limited to '.docker/app')
-rw-r--r--.docker/app/startup.sh20
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