fix centos version check and log pkg manager checks
This commit is contained in:
@@ -876,11 +876,13 @@ function RollBackInstallation {
|
|||||||
|
|
||||||
function CheckOS {
|
function CheckOS {
|
||||||
|
|
||||||
if [[ "$(which yum)" ]]; then
|
cmdlog "which yum"
|
||||||
|
if [[ "$(which yum 2>>$LOGFILE)" ]]; then
|
||||||
PKG_FORMAT="rpm"
|
PKG_FORMAT="rpm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(which apt-get)" ]]; then
|
cmdlog "which apt-get"
|
||||||
|
if [[ "$(which apt-get 2>>$LOGFILE)" ]]; then
|
||||||
PKG_FORMAT="deb"
|
PKG_FORMAT="deb"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -896,7 +898,7 @@ function CheckOS {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $OSNAME == "CentOS" ]] && [[ ! $OSVERSION != "8" ]]; then
|
if [[ $OSNAME == "CentOS" ]] && [[ $OSVERSION != "8" ]]; then
|
||||||
printfail "Only CentOS 8 supported"
|
printfail "Only CentOS 8 supported"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user