Skip to content

Commit 8730515

Browse files
committed
Prevent to stop services in demo mode.
1 parent 07e20a5 commit 8730515

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

bin/v-stop-firewall

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ source $HESTIA/conf/hestia.conf
2525

2626
#is_system_enabled "$FIREWALL_SYSTEM" 'FIREWALL_SYSTEM'
2727

28+
# Perform verification if read-only mode is enabled
29+
check_hestia_demo_mode
30+
2831

2932
#----------------------------------------------------------#
3033
# Action #

bin/v-stop-service

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ source $HESTIA/func/main.sh
2222

2323
check_args '1' "$#" 'SERVICE'
2424

25+
# Perform verification if read-only mode is enabled
26+
check_hestia_demo_mode
27+
2528

2629
#----------------------------------------------------------#
2730
# Action #

0 commit comments

Comments
 (0)