From b45029872f31be0942edd819ac0d0cf1600af7ef Mon Sep 17 00:00:00 2001 From: jgaunt Date: Fri, 31 Jan 2020 08:21:53 -0500 Subject: [PATCH] Update 'update.sh' --- update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index eae8ef9..08a2d16 100644 --- a/update.sh +++ b/update.sh @@ -14,7 +14,8 @@ fi # ensure the lsb_release is installed # Debian and Ubuntu have it preinstaled already, CentOS needs to have it installed -type lsb_release >/dev/null 2>&1 || yum install -y redhat-lsb +#type lsb_release >/dev/null 2>&1 || yum install -y redhat-lsb +# going to use hostnamectl and awk for this test # get OS ditro and version OS=$(lsb_release -si) @@ -82,7 +83,7 @@ elif [ ${OS} == 'CentOS' ]; then # Centos 7 if [[ ${OS_VER} =~ ^8.* ]]; then # install the packages - yum install -y pbis-open sudo nano htop iperf3 bind-utils open-vm-tools unzip nfs-utils git wget net-tools make + dnf install -y pbis-open sudo nano htop iperf3 bind-utils open-vm-tools unzip nfs-utils git wget net-tools make fi # modify ssh to allow root login and then restart the service