Rebuilt targets
This commit is contained in:
parent
402adba191
commit
d1bb2fe68e
|
@ -40,8 +40,8 @@ IS_STABLE=yes
|
||||||
# CleanUp no #__WITH_PARANOIA_DEBUG
|
# CleanUp no #__WITH_PARANOIA_DEBUG
|
||||||
|
|
||||||
|
|
||||||
_OFUNCTIONS_VERSION=2.1.2
|
_OFUNCTIONS_VERSION=2.1.3
|
||||||
_OFUNCTIONS_BUILD=2017052604
|
_OFUNCTIONS_BUILD=2017052605
|
||||||
_OFUNCTIONS_BOOTSTRAP=true
|
_OFUNCTIONS_BOOTSTRAP=true
|
||||||
|
|
||||||
## BEGIN Generic bash functions written in 2013-2017 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
## BEGIN Generic bash functions written in 2013-2017 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
||||||
|
@ -1198,9 +1198,6 @@ function GetLocalOS {
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ "$_OFUNCTIONS_VERSION" != "" ]; then
|
|
||||||
Logger "Local OS: [$localOsVar]." "DEBUG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get linux versions
|
# Get linux versions
|
||||||
if [ -f "/etc/os-release" ]; then
|
if [ -f "/etc/os-release" ]; then
|
||||||
|
@ -1210,6 +1207,10 @@ function GetLocalOS {
|
||||||
|
|
||||||
# Add a global variable for statistics in installer
|
# Add a global variable for statistics in installer
|
||||||
LOCAL_OS_FULL="$localOsVar ($localOsName $localOsVer)"
|
LOCAL_OS_FULL="$localOsVar ($localOsName $localOsVer)"
|
||||||
|
|
||||||
|
if [ "$_OFUNCTIONS_VERSION" != "" ]; then
|
||||||
|
Logger "Local OS: [$LOCAL_OS_FULL]." "DEBUG"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#__BEGIN_WITH_PARANOIA_DEBUG
|
#__BEGIN_WITH_PARANOIA_DEBUG
|
||||||
|
@ -1280,11 +1281,14 @@ function GetRemoteOS {
|
||||||
|
|
||||||
$SSH_CMD env _REMOTE_TOKEN="$_REMOTE_TOKEN" bash -s << 'ENDSSH' >> "$RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP" 2>&1
|
$SSH_CMD env _REMOTE_TOKEN="$_REMOTE_TOKEN" bash -s << 'ENDSSH' >> "$RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP" 2>&1
|
||||||
|
|
||||||
|
|
||||||
function GetOs {
|
function GetOs {
|
||||||
local localOsVar
|
local localOsVar
|
||||||
local localOsName
|
local localOsName
|
||||||
local localOsVer
|
local localOsVer
|
||||||
|
|
||||||
|
local osInfo="/etc/os-release"
|
||||||
|
|
||||||
# There's no good way to tell if currently running in BusyBox shell. Using sluggish way.
|
# There's no good way to tell if currently running in BusyBox shell. Using sluggish way.
|
||||||
if ls --help 2>&1 | grep -i "BusyBox" > /dev/null; then
|
if ls --help 2>&1 | grep -i "BusyBox" > /dev/null; then
|
||||||
localOsVar="BusyBox"
|
localOsVar="BusyBox"
|
||||||
|
@ -1303,9 +1307,11 @@ function GetOs {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Get linux versions
|
# Get linux versions
|
||||||
if [ -f "/etc/os-release" ]; then
|
if [ -f "$osInfo" ]; then
|
||||||
localOsName=$(GetConfFileValue "/etc/os-release" "NAME")
|
localOsName=$(grep "^NAME=" "$osInfo")
|
||||||
localOsVer=$(GetConfFileValue "/etc/os-release" "VERSION")
|
localOsName="${localOsName##*=}"
|
||||||
|
localOsVer=$(grep "^VERSION=" "$osInfo")
|
||||||
|
localOsVer="${localOsVer##*=}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$localOsVar ($localOsName $localOsVer)"
|
echo "$localOsVar ($localOsName $localOsVer)"
|
||||||
|
|
|
@ -148,9 +148,6 @@ function GetLocalOS {
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ "$_OFUNCTIONS_VERSION" != "" ]; then
|
|
||||||
Logger "Local OS: [$localOsVar]." "DEBUG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get linux versions
|
# Get linux versions
|
||||||
if [ -f "/etc/os-release" ]; then
|
if [ -f "/etc/os-release" ]; then
|
||||||
|
@ -160,6 +157,10 @@ function GetLocalOS {
|
||||||
|
|
||||||
# Add a global variable for statistics in installer
|
# Add a global variable for statistics in installer
|
||||||
LOCAL_OS_FULL="$localOsVar ($localOsName $localOsVer)"
|
LOCAL_OS_FULL="$localOsVar ($localOsName $localOsVer)"
|
||||||
|
|
||||||
|
if [ "$_OFUNCTIONS_VERSION" != "" ]; then
|
||||||
|
Logger "Local OS: [$LOCAL_OS_FULL]." "DEBUG"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
function GetConfFileValue () {
|
function GetConfFileValue () {
|
||||||
local file="${1}"
|
local file="${1}"
|
||||||
|
|
22
osync.sh
22
osync.sh
|
@ -9,8 +9,8 @@ IS_STABLE=yes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_OFUNCTIONS_VERSION=2.1.2
|
_OFUNCTIONS_VERSION=2.1.3
|
||||||
_OFUNCTIONS_BUILD=2017052604
|
_OFUNCTIONS_BUILD=2017052605
|
||||||
_OFUNCTIONS_BOOTSTRAP=true
|
_OFUNCTIONS_BOOTSTRAP=true
|
||||||
|
|
||||||
## BEGIN Generic bash functions written in 2013-2017 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
## BEGIN Generic bash functions written in 2013-2017 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
||||||
|
@ -1111,9 +1111,6 @@ function GetLocalOS {
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ "$_OFUNCTIONS_VERSION" != "" ]; then
|
|
||||||
Logger "Local OS: [$localOsVar]." "DEBUG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get linux versions
|
# Get linux versions
|
||||||
if [ -f "/etc/os-release" ]; then
|
if [ -f "/etc/os-release" ]; then
|
||||||
|
@ -1123,6 +1120,10 @@ function GetLocalOS {
|
||||||
|
|
||||||
# Add a global variable for statistics in installer
|
# Add a global variable for statistics in installer
|
||||||
LOCAL_OS_FULL="$localOsVar ($localOsName $localOsVer)"
|
LOCAL_OS_FULL="$localOsVar ($localOsName $localOsVer)"
|
||||||
|
|
||||||
|
if [ "$_OFUNCTIONS_VERSION" != "" ]; then
|
||||||
|
Logger "Local OS: [$LOCAL_OS_FULL]." "DEBUG"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1137,11 +1138,14 @@ function GetRemoteOS {
|
||||||
|
|
||||||
$SSH_CMD env _REMOTE_TOKEN="$_REMOTE_TOKEN" bash -s << 'ENDSSH' >> "$RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP" 2>&1
|
$SSH_CMD env _REMOTE_TOKEN="$_REMOTE_TOKEN" bash -s << 'ENDSSH' >> "$RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP" 2>&1
|
||||||
|
|
||||||
|
|
||||||
function GetOs {
|
function GetOs {
|
||||||
local localOsVar
|
local localOsVar
|
||||||
local localOsName
|
local localOsName
|
||||||
local localOsVer
|
local localOsVer
|
||||||
|
|
||||||
|
local osInfo="/etc/os-release"
|
||||||
|
|
||||||
# There's no good way to tell if currently running in BusyBox shell. Using sluggish way.
|
# There's no good way to tell if currently running in BusyBox shell. Using sluggish way.
|
||||||
if ls --help 2>&1 | grep -i "BusyBox" > /dev/null; then
|
if ls --help 2>&1 | grep -i "BusyBox" > /dev/null; then
|
||||||
localOsVar="BusyBox"
|
localOsVar="BusyBox"
|
||||||
|
@ -1160,9 +1164,11 @@ function GetOs {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Get linux versions
|
# Get linux versions
|
||||||
if [ -f "/etc/os-release" ]; then
|
if [ -f "$osInfo" ]; then
|
||||||
localOsName=$(GetConfFileValue "/etc/os-release" "NAME")
|
localOsName=$(grep "^NAME=" "$osInfo")
|
||||||
localOsVer=$(GetConfFileValue "/etc/os-release" "VERSION")
|
localOsName="${localOsName##*=}"
|
||||||
|
localOsVer=$(grep "^VERSION=" "$osInfo")
|
||||||
|
localOsVer="${localOsVer##*=}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$localOsVar ($localOsName $localOsVer)"
|
echo "$localOsVar ($localOsName $localOsVer)"
|
||||||
|
|
Loading…
Reference in New Issue