make firewalld more quiet
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
parent
70a5e012d8
commit
9af4fcabff
1 changed files with 4 additions and 4 deletions
|
@ -32,13 +32,13 @@ rule="$(cat "$__object/parameter/rule")"
|
|||
|
||||
case "$state_should" in
|
||||
present)
|
||||
echo firewall-cmd --permanent --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule
|
||||
echo firewall-cmd --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule
|
||||
echo firewall-cmd --quiet --permanent --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule
|
||||
echo firewall-cmd --quiet --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule
|
||||
;;
|
||||
|
||||
absent)
|
||||
echo firewall-cmd --permanent --direct --remove-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule
|
||||
echo firewall-cmd --direct --remove-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule
|
||||
echo firewall-cmd --quiet --permanent --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
|
||||
|
|
Loading…
Reference in a new issue