[conntrack-tools] script: fix broken if branches

Pablo Neira netfilter-cvslog-bounces at lists.netfilter.org
Sat Aug 2 19:45:51 CEST 2008


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=conntrack-tools.git;a=commit;h=6887cc03a9bc7df031b56ed670fa1db0165d5529
commit 6887cc03a9bc7df031b56ed670fa1db0165d5529
Author:     Pablo Neira Ayuso <pablo at netfilter.org>
AuthorDate: Sat Aug 2 19:45:45 2008 +0200
Commit:     Pablo Neira Ayuso <pablo at netfilter.org>
CommitDate: Sat Aug 2 19:45:45 2008 +0200

    script: fix broken if branches
    
    Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
       via  6887cc03a9bc7df031b56ed670fa1db0165d5529 (commit)
      from  eea95300f89a13cefdbe4b0e28ddbf88779a4bbf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6887cc03a9bc7df031b56ed670fa1db0165d5529
Author: Pablo Neira Ayuso <pablo at netfilter.org>
Date:   Sat Aug 2 19:45:45 2008 +0200

    script: fix broken if branches
    
    Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>

-----------------------------------------------------------------------

 doc/sync/primary-backup.sh |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>

diff --git a/doc/sync/primary-backup.sh b/doc/sync/primary-backup.sh
index 913ef7c..87a3ebf 100755
--- a/doc/sync/primary-backup.sh
+++ b/doc/sync/primary-backup.sh
@@ -28,21 +28,27 @@ case "$1" in
     #
     $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -c
     if [ $? -eq 1 ]
+    then
         logger "ERROR: failed to invoke conntrackd -c"
+    fi
 
     #
     # flush the internal and the external caches
     #
     $CONNTRACKD_BIN -C $CONNTRACK_CONFIG -f
     if [ $? -eq 1 ]
+    then
     	logger "ERROR: failed to invoke conntrackd -f"
+    fi
 
     #
     # resynchronize my internal cache to the kernel table
     #
     $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -R
     if [ $? -eq 1 ]
+    then
     	logger "ERROR: failed to invoke conntrackd -R"
+    fi
     ;;
   backup)
     #
@@ -75,7 +81,9 @@ case "$1" in
     #
     $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -t
     if [ $? -eq 1 ]
+    then
     	logger "ERROR: failed to invoke conntrackd -t"
+    fi
 
     #
     # request resynchronization with master firewall replica (if any)
@@ -83,7 +91,9 @@ case "$1" in
     #
     $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -n
     if [ $? -eq 1 ]
+    then
     	logger "ERROR: failed to invoke conntrackd -n"
+    fi
     ;;
   *)
     logger "ERROR: unknown state transition"



More information about the netfilter-cvslog mailing list