Allow iptables command to fail

Add a '|| true' to the end of this iptables command so that it fails
gracefully in case the rule does not actually exist.

Change-Id: Ia13d4ae35a5bd033f9520931a36cc9b1dbef9846
This commit is contained in:
James Slagle 2015-02-16 09:15:06 -05:00
parent f979beb899
commit b6b7d5517f
1 changed files with 1 additions and 2 deletions

View File

@ -21,5 +21,4 @@ iptables -t nat -X BOOTSTACK_MASQ || true
# Rename the new chain into permanence.
iptables -t nat -E BOOTSTACK_MASQ_NEW BOOTSTACK_MASQ
# remove forwarding rule (fixes bug 1183099)
iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited
iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited || true