summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-08-02 19:45:45 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-08-02 19:45:45 +0200
commit6887cc03a9bc7df031b56ed670fa1db0165d5529 (patch)
tree22dab8487c77099202f5cb687b28faa26c0bd904 /doc
parenteea95300f89a13cefdbe4b0e28ddbf88779a4bbf (diff)
downloadconntrack-tools-6887cc03a9bc7df031b56ed670fa1db0165d5529.tar.gz
conntrack-tools-6887cc03a9bc7df031b56ed670fa1db0165d5529.zip
script: fix broken if branches
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/sync/primary-backup.sh10
1 files changed, 10 insertions, 0 deletions
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"