Update update.sh

This commit is contained in:
2018-12-15 20:04:54 -05:00
parent e210beb29f
commit 91a0457fb8

View File

@@ -11,7 +11,7 @@ fi
# Debian OS
if [ -f /etc/debian_version ]; then
# install the apt-transport-https
apt install -y apt-transport-https
apt install -y apt-transport-https wget
# download the gpg key for PBIS-Open
wget -O - http://repo.pbis.beyondtrust.com/apt/RPM-GPG-KEY-pbis | apt-key add -
# download the repo for PBIS-Open for SSO and Domain
@@ -38,7 +38,7 @@ elif [ -f /etc/redhat-release ]; then
sed --in-place "s/^update_cmd\ =\ default/update_cmd\ =\ security/" /etc/yum/yum-cron.conf
sed --in-place "s/^apply_updates\ =\ no/apply_updates\ =\ yes/" /etc/yum/yum-cron.conf
systemctl enable yum-cron
systemctl start yum-cron
systemctl restart yum-cron
# modify ssh to allow root login and then restart the service
sed --in-place "s/^#PermitRootLogin\ yes/PermitRootLogin\ yes/" /etc/ssh/sshd_config