From: Peter Palfrader Date: Tue, 27 Mar 2018 09:31:09 +0000 (+0200) Subject: Fix logic in cleanup-watcher-pause-file: clean out files *after* they should be deleted X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=ba3b7ce8aa07907e4265b9c94b82d671c295ccec;p=mirror%2Fdsa-puppet.git Fix logic in cleanup-watcher-pause-file: clean out files *after* they should be deleted --- 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