Update 'update.sh'
This commit is contained in:
@@ -83,6 +83,10 @@ elif [ ${OS} == 'CentOS' ]; then
|
||||
sed --in-place "s/^apply_updates\ =\ no/apply_updates\ =\ yes/" /etc/yum/yum-cron.conf
|
||||
systemctl enable yum-cron
|
||||
systemctl restart yum-cron
|
||||
|
||||
# start and enable uptimed
|
||||
systemctl start uptimed
|
||||
systemctl enable uptimed
|
||||
fi
|
||||
# Centos 7
|
||||
if [[ ${OS_VER} =~ ^8.* ]]; then
|
||||
@@ -102,11 +106,6 @@ elif [ ${OS} == 'CentOS' ]; then
|
||||
curl -o /etc/pki/ca-trust/source/anchors/${GAUNT_CA_CERT_NAME} https://johnhgaunt.com/${GAUNT_CA_CERT_NAME}
|
||||
update-ca-trust
|
||||
|
||||
# start and enable uptimed
|
||||
systemctl start uptimed
|
||||
systemctl enable uptimed
|
||||
|
||||
|
||||
else
|
||||
echo "Unable to determine linux distro"
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user