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

This commit is contained in:
Danny Bessems 2020-11-08 20:07:02 +00:00
parent b037bd7456
commit ffdb742111
1 changed files with 2 additions and 2 deletions

View File

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