From 59fc02c1b04a5119685bc023ba8e1afd59dd5477 Mon Sep 17 00:00:00 2001 From: jgaunt Date: Thu, 11 Jun 2020 10:40:32 -0400 Subject: [PATCH] Update 'update.sh' --- update.sh | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/update.sh b/update.sh index c169b26..de21b6a 100644 --- a/update.sh +++ b/update.sh @@ -64,24 +64,24 @@ if [ ${OS} == "Debian" ] || [ ${OS} == "Ubuntu" ]; then update-ca-certificates # CentOS OS -elif [ "${OS}" == "CentOS" ]; then - # upgrade all packages - yum update -y - - # install the epel for other packages and wget - yum install -y elrepo-release epel-release yum-utils - - # download the repo for PBIS-Open for SSO and Domain - yum-config-manager --add-repo http://repo.pbis.beyondtrust.com/yum/pbiso.repo - - # clean the yum cache - yum clean all - - # remove unneeded packages - yum autoremove -y - +elif [ "${OS}" == "CentOS" ]; then # Centos 7 if [ "${OS_VER}" == "7" ]; then + # upgrade all packages + yum update -y + + # install the epel for other packages and wget + yum install -y elrepo-release epel-release yum-utils + + # download the repo for PBIS-Open for SSO and Domain + yum-config-manager --add-repo http://repo.pbis.beyondtrust.com/yum/pbiso.repo + + # clean the yum cache + yum clean all + + # remove unneeded packages + yum autoremove -y + # install the packages yum install -y pbis-open sudo rsync nano htop nload iperf iperf3 bind-utils yum-cron unzip nfs-utils git wget uptimed net-tools make @@ -102,6 +102,21 @@ elif [ "${OS}" == "CentOS" ]; then fi # Centos 7 if [ "${OS_VER}" == "8" ]; then + # upgrade all packages + dnf update -y + + # install the epel for other packages and wget + dnf install -y elrepo-release epel-release yum-utils + + # download the repo for PBIS-Open for SSO and Domain + dnf-config-manager --add-repo http://repo.pbis.beyondtrust.com/yum/pbiso.repo + + # clean the yum cache + dnf clean all + + # remove unneeded packages + dnf autoremove -y + # install the packages # libnsl is needed for pbis and needs to be installed already dnf install -y libnsl