Update 'update.sh'
This commit is contained in:
10
update.sh
10
update.sh
@@ -14,7 +14,7 @@ fi
|
||||
|
||||
# get OS ditro and version
|
||||
OS=$(hostnamectl | awk '/Operating System/ {print $3}')
|
||||
VM=true
|
||||
VM='true '
|
||||
if [ ${OS} == 'Ubuntu' ]; then
|
||||
OS_VER=$(hostnamectl | awk '/Operating System/ {print $4}')
|
||||
else
|
||||
@@ -22,7 +22,7 @@ else
|
||||
fi
|
||||
|
||||
if [ $(hostnamectl | awk '/Virtualization/ {print $2}') == 'vmware' ]; then
|
||||
VM=false
|
||||
VM='false'
|
||||
|
||||
# Debian OS
|
||||
if [ ${OS} == 'Debian' ] || [ ${OS} == 'Ubuntu' ]; then
|
||||
@@ -45,7 +45,7 @@ if [ ${OS} == 'Debian' ] || [ ${OS} == 'Ubuntu' ]; then
|
||||
apt install -y pbis-open sudo nano htop nload iperf iperf3 unattended-upgrades unzip git nfs-common uptimed net-tools build-essential curl
|
||||
|
||||
# install vm tools
|
||||
if [ ${VM} == true ]; then
|
||||
if [ ${VM} == 'true' ]; then
|
||||
apt install open-vm-tools
|
||||
|
||||
# remove unneeded packages
|
||||
@@ -82,7 +82,7 @@ elif [ ${OS} == 'CentOS' ]; then
|
||||
yum install -y pbis-open sudo nano htop nload iperf iperf3 bind-utils yum-cron unzip nfs-utils git wget uptimed net-tools make
|
||||
|
||||
# install vm tools
|
||||
if [ ${VM} == true ]; then
|
||||
if [ ${VM} == 'true' ]; then
|
||||
yum install open-vm-tools
|
||||
|
||||
# modify yum-cron config to auto install security updates and enable/start the service
|
||||
@@ -103,7 +103,7 @@ elif [ ${OS} == 'CentOS' ]; then
|
||||
dnf install -y pbis-open sudo nano htop iperf3 bind-utilsunzip nfs-utils git wget net-tools make
|
||||
|
||||
# install vm tools
|
||||
if [ ${VM} == true ]; then
|
||||
if [ ${VM} == 'true' ]; then
|
||||
dnf install open-vm-tools
|
||||
|
||||
# https://github.com/BeyondTrust/pbis-open/issues/242
|
||||
|
||||
Reference in New Issue
Block a user