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:
parent
f979beb899
commit
b6b7d5517f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue