From c51908bc839c632ba96d73464a97be77468a1363 Mon Sep 17 00:00:00 2001 From: deajan Date: Sat, 28 Nov 2015 13:06:27 +0100 Subject: [PATCH] Added missing global config file value --- dev/ofunctions.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index aa19eb9..40c74d8 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -1,4 +1,4 @@ -FUNC_BUILD=2015111901 +FUNC_BUILD=2015112802 ## BEGIN Generic functions for osync & obackup written in 2013-2015 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr ## type -p does not work on platforms other than linux (bash). If if does not work, always assume output is not a zero exitcode @@ -74,7 +74,6 @@ function Dummy { sleep .1 } -#__FUNC:Logger function _Logger { local svalue="${1}" # What to log to screen local lvalue="${2:-$svalue}" # What to log to logfile, defaults to screen value @@ -127,7 +126,6 @@ function Logger { _Logger "$prefix$value" fi } -#__ENDFUNC # Portable child (and grandchild) kill function tester under Linux, BSD and MacOS X function KillChilds { @@ -260,7 +258,6 @@ function SendAlert { subject="Alert for $INSTANCE_ID" fi - # Need better fallback if mail sending does not succeed if type mutt > /dev/null 2>&1 ; then echo "$MAIL_ALERT_MSG" | $(type -p mutt) -x -s "$subject" $DESTINATION_MAILS -a "$ALERT_LOG_FILE" if [ $? != 0 ]; then @@ -338,6 +335,8 @@ function LoadConfigFile { # Shellcheck source=./sync.conf source "$RUN_DIR/$PROGRAM.$FUNCNAME.$SCRIPT_PID" fi + + CONFIG_FILE="$config_file" } function GetLocalOS {