Update 'init/entrypoint.sh'
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b037bd7456
commit
ffdb742111
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue