Update 'update.sh'
This commit is contained in:
@@ -64,7 +64,7 @@ elif [ -f /etc/redhat-release ]; then
|
||||
yum autoremove -y
|
||||
|
||||
# modify yum-cron config to auto install security updates and enable/start the service
|
||||
sed --in-place "s/^update_cmd\ =\ default/update_cmd\ =\ security/" /etc/yum/yum-cron.conf
|
||||
sed --in-place "s/^update_cmd\ =\ security/update_cmd\ =\ default/" /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 restart yum-cron
|
||||
|
||||
Reference in New Issue
Block a user