Skip to content

Commit 312cafd

Browse files
author
Kristan Kenney
committed
Lockdown suspension of firewall rules in demo mode
1 parent f71937a commit 312cafd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bin/v-suspend-firewall-rule

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ is_system_enabled "$FIREWALL_SYSTEM" 'FIREWALL_SYSTEM'
2727
is_object_valid '../../data/firewall/rules' 'RULE' "$rule"
2828
is_object_unsuspended '../../data/firewall/rules' 'RULE' "$rule"
2929

30+
# Perform verification if read-only mode is enabled
31+
check_hestia_demo_mode
3032

3133
#----------------------------------------------------------#
3234
# Action #

bin/v-unsuspend-firewall-rule

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ is_system_enabled "$FIREWALL_SYSTEM" 'FIREWALL_SYSTEM'
2727
is_object_valid '../../data/firewall/rules' 'RULE' "$rule"
2828
is_object_suspended '../../data/firewall/rules' 'RULE' "$rule"
2929

30+
# Perform verification if read-only mode is enabled
31+
check_hestia_demo_mode
3032

3133
#----------------------------------------------------------#
3234
# Action #

0 commit comments

Comments
 (0)