Add : Detect "Core OS" distro
Added code to detect Core OS distribution.
This commit is contained in:
Родитель
dde6d80942
Коммит
e2fc08cfc1
|
@ -50,6 +50,13 @@ done
|
|||
else
|
||||
echo "Unknown"
|
||||
fi
|
||||
elif [ -e /etc/os-release ]; then
|
||||
tmp=`cat /etc/os-release`
|
||||
if [[ "$tmp" == *coreos* ]]; then
|
||||
echo "COREOS"
|
||||
exitVal=0
|
||||
fi
|
||||
|
||||
fi
|
||||
return $exitVal
|
||||
}
|
||||
|
|
|
@ -107,6 +107,10 @@ Function DetectLinuxDistro($VIP, $SSHport, $testVMUser, $testVMPassword)
|
|||
{
|
||||
$CleanedDistroName = "FEDORA"
|
||||
}
|
||||
elseif ($DistroName -imatch "COREOS")
|
||||
{
|
||||
$CleanedDistroName = "COREOS"
|
||||
}
|
||||
else
|
||||
{
|
||||
$CleanedDistroName = "UNKNOWN"
|
||||
|
|
Загрузка…
Ссылка в новой задаче