Commit 9af4fcab authored by Nico Schottelius's avatar Nico Schottelius

make firewalld more quiet

Signed-off-by: default avatarNico Schottelius <nico@freiheit.schottelius.org>
parent 70a5e012
...@@ -32,13 +32,13 @@ rule="$(cat "$__object/parameter/rule")" ...@@ -32,13 +32,13 @@ rule="$(cat "$__object/parameter/rule")"
case "$state_should" in case "$state_should" in
present) present)
echo firewall-cmd --permanent --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule echo firewall-cmd --quiet --permanent --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule
echo firewall-cmd --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule echo firewall-cmd --quiet --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule
;; ;;
absent) absent)
echo firewall-cmd --permanent --direct --remove-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule echo firewall-cmd --quiet --permanent --direct --remove-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule
echo firewall-cmd --direct --remove-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule echo firewall-cmd --quiet --direct --remove-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule
;; ;;
*) *)
echo "Unknown state $state_should" >&2 echo "Unknown state $state_should" >&2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment