Updating gpg keys
This commit is contained in:
parent
99d88d8792
commit
68bbd5e693
|
@ -1693,8 +1693,10 @@ function refresh_gpg_keys {
|
||||||
echo "$GPG_REFRESH_TIME */$REFRESH_GPG_KEYS_HOURS * * * root cronic $REFRESH_GPG_KEYS_SCRIPT" >> /etc/crontab
|
echo "$GPG_REFRESH_TIME */$REFRESH_GPG_KEYS_HOURS * * * root cronic $REFRESH_GPG_KEYS_SCRIPT" >> /etc/crontab
|
||||||
systemctl restart cron
|
systemctl restart cron
|
||||||
else
|
else
|
||||||
|
if ! grep "root cronic $REFRESH_GPG_KEYS_SCRIPT" /etc/crontab; then
|
||||||
sed -i "s|root $REFRESH_GPG_KEYS_SCRIPT.*|root cronic $REFRESH_GPG_KEYS_SCRIPT|g" /etc/crontab
|
sed -i "s|root $REFRESH_GPG_KEYS_SCRIPT.*|root cronic $REFRESH_GPG_KEYS_SCRIPT|g" /etc/crontab
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_email {
|
function install_email {
|
||||||
|
|
Loading…
Reference in New Issue