diff --git a/dev/n_osync.sh b/dev/n_osync.sh index 17b6059..05e6ae1 100755 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -4,7 +4,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance AUTHOR="(C) 2013-2017 by Orsiris de Jong" CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr" PROGRAM_VERSION=1.2-RC3 -PROGRAM_BUILD=2017021001 +PROGRAM_BUILD=2017032101 IS_STABLE=no ##### Execution order #__WITH_PARANOIA_DEBUG @@ -2101,6 +2101,11 @@ function SyncOnChanges { fi fi + if [ ! -d "$INITIATOR_SYNC_DIR" ]; then + Logger "Initiator directory [$INITIATOR_SYNC_DIR] does not exist. Cannot monitor." "CRITICAL" + exit 1 + fi + Logger "#### Running osync in file monitor mode." "NOTICE" while true; do