From 27ab8405db1572fec5074e5286952f2902efa56f Mon Sep 17 00:00:00 2001 From: jgaunt Date: Sun, 31 May 2020 00:34:03 -0400 Subject: [PATCH] Update 'update.sh' --- update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update.sh b/update.sh index 3476747..eb932cc 100644 --- a/update.sh +++ b/update.sh @@ -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/