Log time sync
This commit is contained in:
parent
f100dfb3b1
commit
149e16ec85
|
@ -1028,6 +1028,10 @@ YEAR_AFTER=$(echo $DATE_AFTER | awk -F ' ' '{print $6}')
|
||||||
if [ "$YEAR_AFTER" -lt "$YEAR_BEFORE" ]; then
|
if [ "$YEAR_AFTER" -lt "$YEAR_BEFORE" ]; then
|
||||||
echo "Incorrect date: $DATE_BEFORE -> $DATE_AFTER" >> $LOGFILE
|
echo "Incorrect date: $DATE_BEFORE -> $DATE_AFTER" >> $LOGFILE
|
||||||
date -s "DATE_BEFORE"
|
date -s "DATE_BEFORE"
|
||||||
|
else
|
||||||
|
echo -n $TIMESOURCE >> $LOGFILE
|
||||||
|
echo -n " " >> $LOGFILE
|
||||||
|
echo $DATE_AFTER >> $LOGFILE
|
||||||
fi
|
fi
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue