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
b037bd7456
commit
ffdb742111
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user