From 141aec261905d196b16a6a9b21cc9311d7425032 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 13 May 2016 09:55:51 +0100 Subject: [PATCH] Don't report every gpg key refresh --- src/freedombone | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone b/src/freedombone index 13a75989..5af06488 100755 --- a/src/freedombone +++ b/src/freedombone @@ -5327,9 +5327,9 @@ function refresh_gpg_keys { REFRESH_GPG_KEYS_SCRIPT=/usr/bin/update-gpg-keys echo '#!/bin/bash' > $REFRESH_GPG_KEYS_SCRIPT echo "if [ -f /usr/local/bin/${PROJECT_NAME}-sec ]; then" >> $REFRESH_GPG_KEYS_SCRIPT - echo " /usr/bin/timeout 600 /usr/local/bin/${PROJECT_NAME}-sec --refresh yes > /dev/null" >> $REFRESH_GPG_KEYS_SCRIPT + echo " /usr/bin/timeout 600 /usr/local/bin/${PROJECT_NAME}-sec --refresh yes" >> $REFRESH_GPG_KEYS_SCRIPT echo 'else' >> $REFRESH_GPG_KEYS_SCRIPT - echo " /usr/bin/timeout 600 /usr/bin/${PROJECT_NAME}-sec --refresh yes > /dev/null" >> $REFRESH_GPG_KEYS_SCRIPT + echo " /usr/bin/timeout 600 /usr/bin/${PROJECT_NAME}-sec --refresh yes" >> $REFRESH_GPG_KEYS_SCRIPT echo 'fi' >> $REFRESH_GPG_KEYS_SCRIPT chmod +x $REFRESH_GPG_KEYS_SCRIPT @@ -5338,7 +5338,7 @@ function refresh_gpg_keys { fi if ! grep -q "$REFRESH_GPG_KEYS_SCRIPT" /etc/crontab; then GPG_REFRESH_TIME=$(( RANDOM % 60 )) - echo "$GPG_REFRESH_TIME */$REFRESH_GPG_KEYS_HOURS * * * root $REFRESH_GPG_KEYS_SCRIPT" >> /etc/crontab + echo "$GPG_REFRESH_TIME */$REFRESH_GPG_KEYS_HOURS * * * root $REFRESH_GPG_KEYS_SCRIPT 2>&1 > /dev/null" >> /etc/crontab systemctl restart cron fi }