Run gpg key refresh as root
This commit is contained in:
parent
a4415c5de4
commit
f87db99db6
|
@ -5316,9 +5316,9 @@ function configure_gpg {
|
|||
function refresh_gpg_keys {
|
||||
if ! grep -q "${PROJECT_NAME}-sec --refresh" /etc/crontab; then
|
||||
if [ -f /usr/local/bin/freedombone-sec ]; then
|
||||
echo "0 */$REFRESH_GPG_KEYS_HOURS * * * $MY_USERNAME /usr/local/bin/${PROJECT_NAME}-sec --refresh > /dev/null" >> /etc/crontab
|
||||
echo "0 */$REFRESH_GPG_KEYS_HOURS * * * root /usr/local/bin/${PROJECT_NAME}-sec --refresh > /dev/null" >> /etc/crontab
|
||||
else
|
||||
echo "0 */$REFRESH_GPG_KEYS_HOURS * * * $MY_USERNAME /usr/bin/${PROJECT_NAME}-sec --refresh > /dev/null" >> /etc/crontab
|
||||
echo "0 */$REFRESH_GPG_KEYS_HOURS * * * root /usr/bin/${PROJECT_NAME}-sec --refresh > /dev/null" >> /etc/crontab
|
||||
fi
|
||||
systemctl restart cron
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue