From 077685a5a11d4f4e9f5b649ea9532215b378c10c Mon Sep 17 00:00:00 2001 From: "tommaso.piccioli" Date: Fri, 28 Apr 2017 19:56:20 +0200 Subject: [PATCH] fix in mysql-backup.cron check, -lt instead of -gt --- mysql/templates/mysql-backup.cron.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql/templates/mysql-backup.cron.j2 b/mysql/templates/mysql-backup.cron.j2 index 02134e2..eed3f43 100755 --- a/mysql/templates/mysql-backup.cron.j2 +++ b/mysql/templates/mysql-backup.cron.j2 @@ -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