Update update.sh
This commit is contained in:
@@ -11,7 +11,7 @@ fi
|
|||||||
# Debian OS
|
# Debian OS
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
# install the apt-transport-https
|
# 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
|
# download the gpg key for PBIS-Open
|
||||||
wget -O - http://repo.pbis.beyondtrust.com/apt/RPM-GPG-KEY-pbis | apt-key add -
|
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
|
# 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/^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
|
sed --in-place "s/^apply_updates\ =\ no/apply_updates\ =\ yes/" /etc/yum/yum-cron.conf
|
||||||
systemctl enable yum-cron
|
systemctl enable yum-cron
|
||||||
systemctl start yum-cron
|
systemctl restart yum-cron
|
||||||
|
|
||||||
# modify ssh to allow root login and then restart the service
|
# modify ssh to allow root login and then restart the service
|
||||||
sed --in-place "s/^#PermitRootLogin\ yes/PermitRootLogin\ yes/" /etc/ssh/sshd_config
|
sed --in-place "s/^#PermitRootLogin\ yes/PermitRootLogin\ yes/" /etc/ssh/sshd_config
|
||||||
|
|||||||
Reference in New Issue
Block a user