Update 'update.sh'
This commit is contained in:
45
update.sh
45
update.sh
@@ -65,23 +65,23 @@ if [ ${OS} == "Debian" ] || [ ${OS} == "Ubuntu" ]; then
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user