mirror of
https://github.com/deajan/obackup.git
synced 2024-12-26 15:33:41 +01:00
Fixed typo
This commit is contained in:
parent
565d0f5524
commit
2658730f70
@ -3,7 +3,7 @@ SUBPROGRAM=[prgname]
|
|||||||
PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones
|
PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones
|
||||||
AUTHOR="(L) 2013-2016 by Orsiris de Jong"
|
AUTHOR="(L) 2013-2016 by Orsiris de Jong"
|
||||||
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
|
||||||
PROGRAM_BUILD=2016081702Xo
|
PROGRAM_BUILD=2016081703
|
||||||
|
|
||||||
## Runs an osync /obackup instance for every conf file found
|
## Runs an osync /obackup instance for every conf file found
|
||||||
## If an instance fails, run it again if time permits
|
## If an instance fails, run it again if time permits
|
||||||
@ -84,15 +84,19 @@ function Batch {
|
|||||||
## Get list of .conf files
|
## Get list of .conf files
|
||||||
for confFile in $CONF_FILE_PATH/*.conf
|
for confFile in $CONF_FILE_PATH/*.conf
|
||||||
do
|
do
|
||||||
|
if [ -f "$confFile" ]; then
|
||||||
if [ "$runList" == "" ]; then
|
if [ "$runList" == "" ]; then
|
||||||
runList="$confFile"
|
runList="$confFile"
|
||||||
else
|
else
|
||||||
runList=$runList" $confFile"
|
runList=$runList" $confFile"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
if [ -f "$CONF_FILE_PATH" ] && [ "${CONF_FILE_PATH##*.}" == "conf" ]; then
|
elif [ -f "$CONF_FILE_PATH" ] && [ "${CONF_FILE_PATH##*.}" == "conf" ]; then
|
||||||
runList="$CONF_FILE_PATH"
|
runList="$CONF_FILE_PATH"
|
||||||
else
|
fi
|
||||||
|
|
||||||
|
if [ "$runList" == "" ]; then
|
||||||
Logger "Cannot find conf file path [$CONF_FILE_PATH]." "CRITICAL"
|
Logger "Cannot find conf file path [$CONF_FILE_PATH]." "CRITICAL"
|
||||||
Usage
|
Usage
|
||||||
fi
|
fi
|
||||||
|
@ -3,7 +3,7 @@ SUBPROGRAM=obackup
|
|||||||
PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones
|
PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones
|
||||||
AUTHOR="(L) 2013-2016 by Orsiris de Jong"
|
AUTHOR="(L) 2013-2016 by Orsiris de Jong"
|
||||||
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
|
||||||
PROGRAM_BUILD=2016081702Xo
|
PROGRAM_BUILD=2016081703
|
||||||
|
|
||||||
## Runs an osync /obackup instance for every conf file found
|
## Runs an osync /obackup instance for every conf file found
|
||||||
## If an instance fails, run it again if time permits
|
## If an instance fails, run it again if time permits
|
||||||
@ -84,15 +84,19 @@ function Batch {
|
|||||||
## Get list of .conf files
|
## Get list of .conf files
|
||||||
for confFile in $CONF_FILE_PATH/*.conf
|
for confFile in $CONF_FILE_PATH/*.conf
|
||||||
do
|
do
|
||||||
|
if [ -f "$confFile" ]; then
|
||||||
if [ "$runList" == "" ]; then
|
if [ "$runList" == "" ]; then
|
||||||
runList="$confFile"
|
runList="$confFile"
|
||||||
else
|
else
|
||||||
runList=$runList" $confFile"
|
runList=$runList" $confFile"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
if [ -f "$CONF_FILE_PATH" ] && [ "${CONF_FILE_PATH##*.}" == "conf" ]; then
|
elif [ -f "$CONF_FILE_PATH" ] && [ "${CONF_FILE_PATH##*.}" == "conf" ]; then
|
||||||
runList="$CONF_FILE_PATH"
|
runList="$CONF_FILE_PATH"
|
||||||
else
|
fi
|
||||||
|
|
||||||
|
if [ "$runList" == "" ]; then
|
||||||
Logger "Cannot find conf file path [$CONF_FILE_PATH]." "CRITICAL"
|
Logger "Cannot find conf file path [$CONF_FILE_PATH]." "CRITICAL"
|
||||||
Usage
|
Usage
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user