Log time sync

This commit is contained in:
Bob Mottram 2014-07-18 11:34:03 +01:00
parent f100dfb3b1
commit 149e16ec85
1 changed files with 4 additions and 0 deletions

View File

@ -1028,6 +1028,10 @@ YEAR_AFTER=$(echo $DATE_AFTER | awk -F ' ' '{print $6}')
if [ "$YEAR_AFTER" -lt "$YEAR_BEFORE" ]; then
echo "Incorrect date: $DATE_BEFORE -> $DATE_AFTER" >> $LOGFILE
date -s "DATE_BEFORE"
else
echo -n $TIMESOURCE >> $LOGFILE
echo -n " " >> $LOGFILE
echo $DATE_AFTER >> $LOGFILE
fi
#+END_SRC