Update 'update.sh'
This commit is contained in:
@@ -23,6 +23,7 @@ fi
|
||||
|
||||
if [ $(hostnamectl | awk '/Virtualization/ {print $2}') == 'vmware' ]; then
|
||||
VM='false'
|
||||
fi
|
||||
|
||||
# Debian OS
|
||||
if [ ${OS} == 'Debian' ] || [ ${OS} == 'Ubuntu' ]; then
|
||||
@@ -47,6 +48,7 @@ if [ ${OS} == 'Debian' ] || [ ${OS} == 'Ubuntu' ]; then
|
||||
# install vm tools
|
||||
if [ ${VM} == 'true' ]; then
|
||||
apt install open-vm-tools
|
||||
fi
|
||||
|
||||
# remove unneeded packages
|
||||
apt autoremove -y
|
||||
@@ -84,6 +86,7 @@ elif [ ${OS} == 'CentOS' ]; then
|
||||
# install vm tools
|
||||
if [ ${VM} == 'true' ]; then
|
||||
yum install open-vm-tools
|
||||
fi
|
||||
|
||||
# modify yum-cron config to auto install security updates and enable/start the service
|
||||
sed --in-place "s/^update_cmd\ =\ security/update_cmd\ =\ default/" /etc/yum/yum-cron.conf
|
||||
@@ -105,6 +108,7 @@ elif [ ${OS} == 'CentOS' ]; then
|
||||
# install vm tools
|
||||
if [ ${VM} == 'true' ]; then
|
||||
dnf install open-vm-tools
|
||||
fi
|
||||
|
||||
# https://github.com/BeyondTrust/pbis-open/issues/242
|
||||
cp /opt/pbis/share/rhel/8.0/pbis.pp /opt/pbis/share/
|
||||
|
||||
Reference in New Issue
Block a user