fix in mysql-backup.cron check, -lt instead of -gt

This commit is contained in:
Tommaso Piccioli 2017-04-28 19:56:20 +02:00
parent a6927b06a2
commit 077685a5a1
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if [ -f /var/log/backuppc.log ] ; then
TMSTMP=$( date +%s )
. /var/log/backuppc.log
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
exit 0
fi