fix in mysql-backup.cron check, -lt instead of -gt
This commit is contained in:
parent
a6927b06a2
commit
077685a5a1
|
@ -11,7 +11,7 @@ if [ -f /var/log/backuppc.log ] ; then
|
||||||
TMSTMP=$( date +%s )
|
TMSTMP=$( date +%s )
|
||||||
. /var/log/backuppc.log
|
. /var/log/backuppc.log
|
||||||
LAST_BACKUP_TIME=$( expr $TMSTMP - $BACKUP_TIMESTAMP )
|
LAST_BACKUP_TIME=$( expr $TMSTMP - $BACKUP_TIMESTAMP )
|
||||||
if [ $LAST_BACKUP_TIME -gt 86400 -a $BACKUP_RESULT == 'OK' ] ; then
|
if [ $LAST_BACKUP_TIME -lt 86400 -a $BACKUP_RESULT == 'OK' ] ; then
|
||||||
echo "BackupPC is active, doing nothing" > $LOG_FILE
|
echo "BackupPC is active, doing nothing" > $LOG_FILE
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue