cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [1/4] git commit: updated refs/heads/4.5 to d91d161
Date Thu, 23 Apr 2015 12:13:14 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.5 64ab3554a -> d91d16110


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/4.5
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