Fix logic in cleanup-watcher-pause-file: clean out files *after* they should be deleted
authorPeter Palfrader <peter@palfrader.org>
Tue, 27 Mar 2018 09:31:09 +0000 (11:31 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 27 Mar 2018 09:31:25 +0000 (11:31 +0200)
modules/ganeti2/files/cleanup-watcher-pause-file

index ea680b5..2b761aa 100755 (executable)
@@ -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