Added initiator dir check before running monitor mode

This commit is contained in:
deajan 2017-03-21 22:56:03 +01:00
parent 2c3e6ac7a9
commit 1404b81d56
1 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance
AUTHOR="(C) 2013-2017 by Orsiris de Jong" AUTHOR="(C) 2013-2017 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr" CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
PROGRAM_VERSION=1.2-RC3 PROGRAM_VERSION=1.2-RC3
PROGRAM_BUILD=2017021001 PROGRAM_BUILD=2017032101
IS_STABLE=no IS_STABLE=no
##### Execution order #__WITH_PARANOIA_DEBUG ##### Execution order #__WITH_PARANOIA_DEBUG
@ -2101,6 +2101,11 @@ function SyncOnChanges {
fi fi
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" Logger "#### Running osync in file monitor mode." "NOTICE"
while true; do while true; do