Kristan Kenney 6 лет назад
Родитель
Сommit
0faa709f39

+ 0 - 3
bin/v-add-database

@@ -49,9 +49,6 @@ is_package_full 'DATABASES'
 is_password_valid
 dbpass="$password"
 
-# Perform verification if read-only mode is enabled
-check_hestia_demo_mode
-
 #----------------------------------------------------------#
 #                       Action                             #
 #----------------------------------------------------------#

+ 0 - 3
bin/v-add-dns-domain

@@ -50,9 +50,6 @@ is_package_full 'DNS_DOMAINS'
 template=$(get_user_value '$DNS_TEMPLATE')
 is_dns_template_valid $template
 
-# Perform verification if read-only mode is enabled
-check_hestia_demo_mode
-
 if [ ! -z "$ns1" ]; then
     ns1=$(echo $4 |sed -e 's/\.*$//g' -e 's/^\.*//g')
     is_format_valid 'ns1'

+ 0 - 3
bin/v-add-mail-domain

@@ -48,9 +48,6 @@ is_domain_new 'mail' "$domain"
 is_package_full 'MAIL_DOMAINS'
 is_dir_symlink $HOMEDIR/$user/mail
 
-# Perform verification if read-only mode is enabled
-check_hestia_demo_mode
-
 #----------------------------------------------------------#
 #                       Action                             #
 #----------------------------------------------------------#

+ 0 - 3
bin/v-add-web-domain

@@ -35,9 +35,6 @@ format_domain
 format_domain_idn
 format_aliases
 
-# Perform verification if read-only mode is enabled
-check_hestia_demo_mode
-
 #----------------------------------------------------------#
 #                    Verifications                         #
 #----------------------------------------------------------#

+ 0 - 2
bin/v-delete-database

@@ -32,8 +32,6 @@ is_object_unsuspended 'user' 'USER' "$user"
 is_object_valid 'db' 'DB' "$database"
 is_object_unsuspended 'db' 'DB' "$database"
 
-# Perform verification if read-only mode is enabled
-check_hestia_demo_mode
 
 #----------------------------------------------------------#
 #                       Action                             #

+ 0 - 3
bin/v-delete-dns-domain

@@ -34,9 +34,6 @@ is_object_valid 'dns' 'DOMAIN' "$domain"
 is_object_unsuspended 'dns' 'DOMAIN' "$domain"
 
 
-# Perform verification if read-only mode is enabled
-check_hestia_demo_mode
-
 #----------------------------------------------------------#
 #                       Action                             #
 #----------------------------------------------------------#

+ 0 - 3
bin/v-delete-mail-domain

@@ -38,9 +38,6 @@ is_object_valid 'mail' 'DOMAIN' "$domain"
 is_object_unsuspended 'mail' 'DOMAIN' "$domain"
 
 
-# Perform verification if read-only mode is enabled
-check_hestia_demo_mode
-
 #----------------------------------------------------------#
 #                       Action                             #
 #----------------------------------------------------------#

+ 0 - 3
bin/v-delete-web-domain

@@ -42,9 +42,6 @@ is_object_unsuspended 'user' 'USER' "$user"
 is_object_valid 'web' 'DOMAIN' "$domain"
 is_object_unsuspended 'web' 'DOMAIN' "$domain"
 
-# Perform verification if read-only mode is enabled
-check_hestia_demo_mode
-
 #----------------------------------------------------------#
 #                       Action                             #
 #----------------------------------------------------------#

+ 1 - 1
func/main.sh

@@ -1013,7 +1013,7 @@ download_file() {
 check_hestia_demo_mode() {
     demo_mode=$(grep DEMO_MODE /usr/local/hestia/conf/hestia.conf | cut -d '=' -f2 | sed "s|'||g")
     if [ ! -z "$demo_mode" ] && [ "$demo_mode" = "yes" ]; then
-        echo "ERROR: Unable to perform operation when demo mode is enabled."
+        echo "ERROR: Unable to perform operation due to security restrictions that are in place."
         exit 1
     fi
 }