Browse Source

Restrict system restart via backend script if demo mode is enabled

Kristan Kenney 6 năm trước cách đây
mục cha
commit
f71937ab2e
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      bin/v-restart-system

+ 3 - 0
bin/v-restart-system

@@ -23,6 +23,9 @@ source $HESTIA/func/main.sh
 check_args '1' "$#" 'RESTART'
 check_args '1' "$#" 'RESTART'
 
 
 
 
+# Perform verification if read-only mode is enabled
+check_hestia_demo_mode
+
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                       Action                             #
 #                       Action                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#