Minor enhancement in os detection log
This commit is contained in:
parent
e41ddca8f7
commit
3a988bbfb7
|
@ -11,7 +11,7 @@ PROGRAM_VERSION=1.1-dev
|
||||||
PROGRAM_BUILD=2016031002
|
PROGRAM_BUILD=2016031002
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
## FUNC_BUILD=2016032001
|
## FUNC_BUILD=2016032002
|
||||||
## BEGIN Generic functions for osync & obackup written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
## BEGIN Generic functions for osync & obackup written in 2013-2016 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
|
## type -p does not work on platforms other than linux (bash). If if does not work, always assume output is not a zero exitcode
|
||||||
|
@ -421,7 +421,7 @@ function GetLocalOS {
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [ "$IGNORE_OS_TYPE" == "yes" ]; then #DOC: Undocumented option
|
if [ "$IGNORE_OS_TYPE" == "yes" ]; then #DOC: Undocumented option
|
||||||
Logger "Running on unknown local OS." "WARN"
|
Logger "Running on unknown local OS [$local_os_var]." "WARN"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
Logger "Running on >> $local_os_var << not supported. Please report to the author." "ERROR"
|
Logger "Running on >> $local_os_var << not supported. Please report to the author." "ERROR"
|
||||||
|
@ -485,7 +485,7 @@ function GetRemoteOS {
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [ "$IGNORE_OS_VER" == "yes" ]; then #DOC: Undocumented option
|
if [ "$IGNORE_OS_VER" == "yes" ]; then #DOC: Undocumented option
|
||||||
Logger "Running on unknown remote OS." "WARN"
|
Logger "Running on unknown remote OS [$remote_os_var]." "WARN"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
Logger "Running on remote OS failed. Please report to the author if the OS is not supported." "CRITICAL"
|
Logger "Running on remote OS failed. Please report to the author if the OS is not supported." "CRITICAL"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
## FUNC_BUILD=2016032001
|
## FUNC_BUILD=2016032002
|
||||||
## BEGIN Generic functions for osync & obackup written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
## BEGIN Generic functions for osync & obackup written in 2013-2016 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
|
## type -p does not work on platforms other than linux (bash). If if does not work, always assume output is not a zero exitcode
|
||||||
|
@ -408,7 +408,7 @@ function GetLocalOS {
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [ "$IGNORE_OS_TYPE" == "yes" ]; then #DOC: Undocumented option
|
if [ "$IGNORE_OS_TYPE" == "yes" ]; then #DOC: Undocumented option
|
||||||
Logger "Running on unknown local OS." "WARN"
|
Logger "Running on unknown local OS [$local_os_var]." "WARN"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
Logger "Running on >> $local_os_var << not supported. Please report to the author." "ERROR"
|
Logger "Running on >> $local_os_var << not supported. Please report to the author." "ERROR"
|
||||||
|
@ -472,7 +472,7 @@ function GetRemoteOS {
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [ "$IGNORE_OS_VER" == "yes" ]; then #DOC: Undocumented option
|
if [ "$IGNORE_OS_VER" == "yes" ]; then #DOC: Undocumented option
|
||||||
Logger "Running on unknown remote OS." "WARN"
|
Logger "Running on unknown remote OS [$remote_os_var]." "WARN"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
Logger "Running on remote OS failed. Please report to the author if the OS is not supported." "CRITICAL"
|
Logger "Running on remote OS failed. Please report to the author if the OS is not supported." "CRITICAL"
|
||||||
|
|
6
osync.sh
6
osync.sh
|
@ -11,7 +11,7 @@ PROGRAM_VERSION=1.1-dev
|
||||||
PROGRAM_BUILD=2016031002
|
PROGRAM_BUILD=2016031002
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
## FUNC_BUILD=2016032001
|
## FUNC_BUILD=2016032002
|
||||||
## BEGIN Generic functions for osync & obackup written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
## BEGIN Generic functions for osync & obackup written in 2013-2016 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
|
## type -p does not work on platforms other than linux (bash). If if does not work, always assume output is not a zero exitcode
|
||||||
|
@ -407,7 +407,7 @@ function GetLocalOS {
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [ "$IGNORE_OS_TYPE" == "yes" ]; then #DOC: Undocumented option
|
if [ "$IGNORE_OS_TYPE" == "yes" ]; then #DOC: Undocumented option
|
||||||
Logger "Running on unknown local OS." "WARN"
|
Logger "Running on unknown local OS [$local_os_var]." "WARN"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
Logger "Running on >> $local_os_var << not supported. Please report to the author." "ERROR"
|
Logger "Running on >> $local_os_var << not supported. Please report to the author." "ERROR"
|
||||||
|
@ -470,7 +470,7 @@ function GetRemoteOS {
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [ "$IGNORE_OS_VER" == "yes" ]; then #DOC: Undocumented option
|
if [ "$IGNORE_OS_VER" == "yes" ]; then #DOC: Undocumented option
|
||||||
Logger "Running on unknown remote OS." "WARN"
|
Logger "Running on unknown remote OS [$remote_os_var]." "WARN"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
Logger "Running on remote OS failed. Please report to the author if the OS is not supported." "CRITICAL"
|
Logger "Running on remote OS failed. Please report to the author if the OS is not supported." "CRITICAL"
|
||||||
|
|
Loading…
Reference in New Issue