]> git.etc.gen.nz Git - spong.git/commitdiff
Fixed file name problem for firstrun checking in the save_status(). Thanks for Brett...
authorStephen L Johnson <sjohnson@monsters.org>
Tue, 9 Jul 2002 21:41:47 +0000 (21:41 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Tue, 9 Jul 2002 21:41:47 +0000 (21:41 +0000)
src/spong-server.pl

index d931cd32dcb8d40008d7c04c750d9c5aaa7b967b..f68479ff5f4caaebb57a01e9c560c5d50a49c23f 100755 (executable)
@@ -6,7 +6,7 @@
 # There are one or more update processes that listen for status updates 
 # from client programs.
 
-# $Id: spong-server.pl,v 1.51 2002/07/09 17:58:55 sljohnson Exp $
+# $Id: spong-server.pl,v 1.52 2002/07/09 21:41:47 sljohnson Exp $
 
 use lib "@@LIBDIR@@";
 
@@ -1242,9 +1242,9 @@ sub message_user {
          # If status has changed 
          my $firstrun = 1;
          foreach my $c ('red','yellow','green','clear','purple') {
-            if( -f "$SPONGDB/$host/services/$service.$c" ) { $firstrun = 0; }
+            if( -f "$SPONGDB/$host/services/$service-$c" ) { $firstrun = 0; }
          }
-         if ( ! -f "$SPONGDB/$host/services/$service.$color"
+         if ( ! -f "$SPONGDB/$host/services/$service-$color"
               and ! ($firstrun and $color eq "green" ) ) {
             # If this is the first update, don't page on a green status!!
             &debug("change in state, messaging a human",2);