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
|
sed --in-place "s/^apply_updates\ =\ no/apply_updates\ =\ yes/" /etc/yum/yum-cron.conf
|
||||||
systemctl enable yum-cron
|
systemctl enable yum-cron
|
||||||
systemctl restart yum-cron
|
systemctl restart yum-cron
|
||||||
|
|
||||||
|
# start and enable uptimed
|
||||||
|
systemctl start uptimed
|
||||||
|
systemctl enable uptimed
|
||||||
fi
|
fi
|
||||||
# Centos 7
|
# Centos 7
|
||||||
if [[ ${OS_VER} =~ ^8.* ]]; then
|
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}
|
curl -o /etc/pki/ca-trust/source/anchors/${GAUNT_CA_CERT_NAME} https://johnhgaunt.com/${GAUNT_CA_CERT_NAME}
|
||||||
update-ca-trust
|
update-ca-trust
|
||||||
|
|
||||||
# start and enable uptimed
|
|
||||||
systemctl start uptimed
|
|
||||||
systemctl enable uptimed
|
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Unable to determine linux distro"
|
echo "Unable to determine linux distro"
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user