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