only restart the firewall (iptables) if needed
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
68b7392021
commit
b9dcd01ea1
1 changed files with 3 additions and 2 deletions
|
@ -1,2 +1,3 @@
|
|||
# Rebuild rules - FIXME: do conditionally as soon as cdist supports it
|
||||
echo /etc/init.d/iptables restart
|
||||
if grep -q "^__file/etc/iptables.d/" "$__messages_in"; then
|
||||
echo /etc/init.d/iptables restart
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue