Update 'init/entrypoint.sh'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
345da1a0c6
commit
77eb440356
@ -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
|
Loading…
Reference in New Issue
Block a user