File tree Expand file tree Collapse file tree 6 files changed +14
-0
lines changed
Expand file tree Collapse file tree 6 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ is_format_valid 'ip' 'chain'
3333is_system_enabled " $FIREWALL_SYSTEM " ' FIREWALL_SYSTEM'
3434
3535
36+ # Perform verification if read-only mode is enabled
37+ check_hestia_demo_mode
38+
3639# ----------------------------------------------------------#
3740# Action #
3841# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ check_args '1' "$#" 'CHAIN [PORT] [PROTOCOL]'
4040is_format_valid ' chain'
4141is_system_enabled " $FIREWALL_SYSTEM " ' FIREWALL_SYSTEM'
4242
43+ # Perform verification if read-only mode is enabled
44+ check_hestia_demo_mode
4345
4446# ----------------------------------------------------------#
4547# Action #
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ if [ ! -z "$comment" ]; then
5656 is_format_valid ' comment'
5757fi
5858
59+ # Perform verification if read-only mode is enabled
60+ check_hestia_demo_mode
5961
6062# ----------------------------------------------------------#
6163# Action #
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ is_system_enabled "$FIREWALL_SYSTEM" 'FIREWALL_SYSTEM'
4848is_object_valid ' ../../data/firewall/rules' ' RULE' " $rule "
4949
5050
51+ # Perform verification if read-only mode is enabled
52+ check_hestia_demo_mode
53+
5154# ----------------------------------------------------------#
5255# Action #
5356# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ check_args '2' "$#" 'IP CHAIN'
3232is_format_valid ' ip' ' chain'
3333is_system_enabled " $FIREWALL_SYSTEM " ' FIREWALL_SYSTEM'
3434
35+ # Perform verification if read-only mode is enabled
36+ check_hestia_demo_mode
3537
3638# ----------------------------------------------------------#
3739# Action #
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ check_args '1' "$#" 'CHAIN'
3131is_format_valid ' chain'
3232is_system_enabled " $FIREWALL_SYSTEM " ' FIREWALL_SYSTEM'
3333
34+ # Perform verification if read-only mode is enabled
35+ check_hestia_demo_mode
3436
3537# ----------------------------------------------------------#
3638# Action #
You can’t perform that action at this time.
0 commit comments