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 e79433a7..acf99dd3 100755
--- a/ci/deploy/deploy.sh
+++ b/ci/deploy/deploy.sh
@@ -369,11 +369,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 ======"