Update 'init/entrypoint.sh'
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2020-11-08 21:16:03 +00:00
parent 345da1a0c6
commit 77eb440356
1 changed files with 3 additions and 2 deletions

View File

@ -2,9 +2,10 @@
set -eox pipefail
if [ "$RUN_ONCE" = "true" ]; then
rsync -avz $SOURCE_DIR $TARGET_DIR
rsync -az --info=progress2 $SOURCE_DIR $TARGET_DIR
else
cat /proc/sys/fs/inotify/max_user_watches
while inotifywait -r -e modify,create,delete,move $SOURCE_DIR; do
rsync -avz $SOURCE_DIR $TARGET_DIR
rsync -az --info=progress2 $SOURCE_DIR $TARGET_DIR
done
fi