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 20:07:02 +00:00
parent b037bd7456
commit ffdb742111

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
set -eox pipefail set -eox pipefail
if [ ! "$RUN_ONCE" -eq "true" ]; then if [ "$RUN_ONCE" = "true" ]; then
rsync -avz $SOURCE_DIR $TARGET_DIR rsync -avz $SOURCE_DIR $TARGET_DIR
else else
while inotifywait -r -e modify,create,delete,move $SOURCE_DIR; do while inotifywait -r -e modify,create,delete,move $SOURCE_DIR; do
rsync -avz $SOURCE_DIR $TARGET_DIR rsync -avz $SOURCE_DIR $TARGET_DIR