From ba3b7ce8aa07907e4265b9c94b82d671c295ccec Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 27 Mar 2018 11:31:09 +0200 Subject: [PATCH] Fix logic in cleanup-watcher-pause-file: clean out files *after* they should be deleted --- modules/ganeti2/files/cleanup-watcher-pause-file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ganeti2/files/cleanup-watcher-pause-file b/modules/ganeti2/files/cleanup-watcher-pause-file index ea680b5e3..2b761aac5 100755 --- a/modules/ganeti2/files/cleanup-watcher-pause-file +++ b/modules/ganeti2/files/cleanup-watcher-pause-file @@ -12,7 +12,7 @@ if [ -e "$P" ]; then now="$(date +%s)" - if [ "$deleteafter" -gt "$now" ]; then + if [ "$deleteafter" -lt "$now" ]; then rm "$P" fi fi -- 2.20.1