cdist/cdist/conf/type/__iptables_apply/gencode-remote
Nico Schottelius b9dcd01ea1 only restart the firewall (iptables) if needed
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-12-04 13:19:04 +01:00

3 lines
101 B
Text

if grep -q "^__file/etc/iptables.d/" "$__messages_in"; then
echo /etc/init.d/iptables restart
fi