Explorar o código

Disable changing of hostname in demo mode

Kristan Kenney %!s(int64=6) %!d(string=hai) anos
pai
achega
ad037024fe
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      bin/v-change-sys-hostname

+ 2 - 0
bin/v-change-sys-hostname

@@ -24,6 +24,8 @@ source $HESTIA/conf/hestia.conf
 check_args '1' "$#" 'HOSTNAME'
 is_format_valid 'domain'
 
+# Perform verification if read-only mode is enabled
+check_hestia_demo_mode
 
 #----------------------------------------------------------#
 #                       Action                             #