diff --git a/src/freedombone b/src/freedombone index f420386a..de63e0f7 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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