Update 'init/entrypoint.sh'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2020-11-08 21:16:03 +00:00
parent 345da1a0c6
commit 77eb440356

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