Update update.sh
This commit is contained in:
@@ -25,14 +25,14 @@ if [ -f /etc/debian_version ]; then
|
|||||||
# update the list of available packages
|
# update the list of available packages
|
||||||
apt update
|
apt update
|
||||||
# install the packages
|
# install the packages
|
||||||
apt install -y pbis-open sudo nano htop nload iperf3 iperf3 open-vm-tools unattended-upgrades unzip git nfs-common
|
apt install -y pbis-open sudo nano htop nload iperf iperf3 open-vm-tools unattended-upgrades unzip git nfs-common
|
||||||
|
|
||||||
all_distros
|
all_distros
|
||||||
|
|
||||||
# CentOS OS
|
# CentOS OS
|
||||||
elif [ -f /etc/redhat-release ]; then
|
elif [ -f /etc/redhat-release ]; then
|
||||||
# isntall the epel for other packages and wget
|
# isntall the epel for other packages and wget
|
||||||
yum install -y wget epel-release git
|
yum install -y wget epel-release
|
||||||
|
|
||||||
# download the repo for PBIS-Open for SSO and Domain
|
# download the repo for PBIS-Open for SSO and Domain
|
||||||
wget -O /etc/yum.repos.d/pbiso.repo http://repo.pbis.beyondtrust.com/yum/pbiso.repo
|
wget -O /etc/yum.repos.d/pbiso.repo http://repo.pbis.beyondtrust.com/yum/pbiso.repo
|
||||||
@@ -40,7 +40,7 @@ elif [ -f /etc/redhat-release ]; then
|
|||||||
# clean the yum cache
|
# clean the yum cache
|
||||||
yum clean all
|
yum clean all
|
||||||
# install the packages
|
# install the packages
|
||||||
yum install -y pbis-open sudo nano htop nload iperf3 bind-utils open-vm-tools yum-cron unzip nfs-utils
|
yum install -y pbis-open sudo nano htop nload iperf iperf3 bind-utils open-vm-tools yum-cron unzip nfs-utils git
|
||||||
|
|
||||||
# modify yum-cron config to auto install security updates and enable/start the service
|
# modify yum-cron config to auto install security updates and enable/start the service
|
||||||
sed --in-place "s/^update_cmd\ =\ default/update_cmd\ =\ security/" /etc/yum/yum-cron.conf
|
sed --in-place "s/^update_cmd\ =\ default/update_cmd\ =\ security/" /etc/yum/yum-cron.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user