Add 'init/entrypoint.sh'
This commit is contained in:
parent
1c8a09a7ce
commit
97ac35b2f0
10
init/entrypoint.sh
Normal file
10
init/entrypoint.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eox pipefail
|
||||||
|
|
||||||
|
if [ ! "$RUN_ONCE" -eq "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
|
||||||
|
done
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user