only restart the firewall (iptables) if needed

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-12-04 13:19:04 +01:00
parent 68b7392021
commit b9dcd01ea1
1 changed files with 3 additions and 2 deletions

View File

@ -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