r20: - fixups
authorDinko Korunic <Dinko.Korunic@CARNet.hr>
Tue, 19 Feb 2008 18:17:46 +0000 (18:17 +0000)
committerDinko Korunic <Dinko.Korunic@CARNet.hr>
Tue, 19 Feb 2008 18:17:46 +0000 (18:17 +0000)
update-monit.d

index dee92dc..8505053 100755 (executable)
@@ -105,12 +105,12 @@ check_template() {
         return 0
     fi
 
-    if ! grep -q "^#.*monit-cn template file" "$filename"; then
+    if ! grep -q "^#.*monit-cn template" "$filename"; then
         RET=0
         return 0
     fi
 
-    if ! cmp -s "$filename" "${TEMPLATES_DIR}/${serviceconf}"; then
+    if cmp -s "$filename" "${TEMPLATES_DIR}/${serviceconf}"; then
         RET=1
         return 1
     fi