cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [01/50] [abbrv] git commit: updated refs/heads/master to 1c408de
Date Thu, 07 May 2015 14:04:39 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 5ba904abc -> 1c408dec3


CLOUDSTACK-7493: ignore errors on removal of iptables chains that don't exist

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f26ae6eb
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f26ae6eb
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f26ae6eb

Branch: refs/heads/master
Commit: f26ae6eb39fbc3d8e86aca492447fac5360ed130
Parents: 5cba410
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Thu Apr 23 14:00:05 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Thu Apr 23 14:04:32 2015 +0200

----------------------------------------------------------------------
 .../patches/debian/config/opt/cloud/bin/firewall_egress.sh    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f26ae6eb/systemvm/patches/debian/config/opt/cloud/bin/firewall_egress.sh
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/firewall_egress.sh b/systemvm/patches/debian/config/opt/cloud/bin/firewall_egress.sh
index 767f17e..6eb0531 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/firewall_egress.sh
+++ b/systemvm/patches/debian/config/opt/cloud/bin/firewall_egress.sh
@@ -34,9 +34,10 @@ usage() {
 }
 
 fw_egress_remove_backup() {
-  sudo iptables -D FW_OUTBOUND -j _FW_EGRESS_RULES 
-  sudo iptables -F _FW_EGRESS_RULES 
-  sudo iptables -X _FW_EGRESS_RULES 
+  # remove backup rules, ignore errors as they could not be present
+  sudo iptables -D FW_OUTBOUND -j _FW_EGRESS_RULES >/dev/null 2>&1
+  sudo iptables -F _FW_EGRESS_RULES >/dev/null 2>&1
+  sudo iptables -X _FW_EGRESS_RULES >/dev/null 2>&1
 }
 
 fw_egress_save() {


Mime
View raw message