summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xci/deploy/deploy.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh
index 790bb172..e99f62e0 100755
--- a/ci/deploy/deploy.sh
+++ b/ci/deploy/deploy.sh
@@ -375,11 +375,13 @@ fi
echo "====== post deploy ======"
ssh $SSH_PARAS $DAISY_IP "bash $REMOTE_SPACE/deploy/post.sh -n $NETWORK"
-echo "====== disable iptable rules ======"
-sudo iptables -D FORWARD -o daisy1 -j REJECT --reject-with icmp-port-unreachable
-sudo iptables -D FORWARD -i daisy1 -j REJECT --reject-with icmp-port-unreachable
-sudo iptables -D FORWARD -o daisy2 -j REJECT --reject-with icmp-port-unreachable
-sudo iptables -D FORWARD -i daisy2 -j REJECT --reject-with icmp-port-unreachable
+if [ $IS_BARE == 0 ]; then
+ echo "====== disable iptable rules ======"
+ iptables -D FORWARD -o daisy1 -j REJECT --reject-with icmp-port-unreachable
+ iptables -D FORWARD -i daisy1 -j REJECT --reject-with icmp-port-unreachable
+ iptables -D FORWARD -o daisy2 -j REJECT --reject-with icmp-port-unreachable
+ iptables -D FORWARD -i daisy2 -j REJECT --reject-with icmp-port-unreachable
+fi
echo "====== deploy successfully ======"