- update monitrc za Squeeze
[monit-cn.git] / debian / postinst
index 7f1b54c..88bca34 100755 (executable)
@@ -57,8 +57,8 @@ if grep -q '@localhost' /etc/monit/monitrc; then
 fi
 
 # fix "but not on { changed } bug in monitrc
-cp_check_and_sed '^set alert [^[:space:]]*@[^[:space:]]*$' \
-    's/^set alert \([^[:space:]]*@[^[:space:]]*\) .*$/set alert \1 but not on { instance }/g' \
+cp_check_and_sed '^set alert [^[:space:]]*@[^[:space:]]* $' \
+    's/^set alert \([^[:space:]]*@[^[:space:]]*\).*$/set alert \1 but not on { instance }/g' \
     /etc/monit/monitrc || true
 
 # (re)generate monit.d files