File tree Expand file tree Collapse file tree 7 files changed +16
-5
lines changed
Expand file tree Collapse file tree 7 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ source $HESTIA/conf/hestia.conf
2727
2828HIDE=7
2929
30-
3130# ----------------------------------------------------------#
3231# Verifications #
3332# ----------------------------------------------------------#
@@ -42,6 +41,8 @@ get_next_cronjob
4241is_format_valid ' job'
4342is_object_new ' cron' ' JOB' " $job "
4443
44+ # Perform verification if read-only mode is enabled
45+ check_hestia_demo_mode
4546
4647# ----------------------------------------------------------#
4748# Action #
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ source $HESTIA/func/main.sh
3030source $HESTIA /func/db.sh
3131source $HESTIA /conf/hestia.conf
3232
33-
3433# ----------------------------------------------------------#
3534# Verifications #
3635# ----------------------------------------------------------#
@@ -50,6 +49,8 @@ is_package_full 'DATABASES'
5049is_password_valid
5150dbpass=" $password "
5251
52+ # Perform verification if read-only mode is enabled
53+ check_hestia_demo_mode
5354
5455# ----------------------------------------------------------#
5556# Action #
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ source $HESTIA/conf/hestia.conf
3636format_domain
3737format_domain_idn
3838
39-
4039# ----------------------------------------------------------#
4140# Verifications #
4241# ----------------------------------------------------------#
@@ -51,6 +50,9 @@ is_package_full 'DNS_DOMAINS'
5150template=$( get_user_value ' $DNS_TEMPLATE' )
5251is_dns_template_valid $template
5352
53+ # Perform verification if read-only mode is enabled
54+ check_hestia_demo_mode
55+
5456if [ ! -z " $ns1 " ]; then
5557 ns1=$( echo $4 | sed -e ' s/\.*$//g' -e ' s/^\.*//g' )
5658 is_format_valid ' ns1'
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ if [[ "$account" =~ [[:upper:]] ]]; then
2626 account=$( echo " $account " | tr ' [:upper:]' ' [:lower:]' )
2727fi
2828
29-
3029# ----------------------------------------------------------#
3130# Verifications #
3231# ----------------------------------------------------------#
@@ -46,6 +45,9 @@ is_mail_new "$account"
4645is_password_valid
4746
4847
48+ # Perform verification if read-only mode is enabled
49+ check_hestia_demo_mode
50+
4951# ----------------------------------------------------------#
5052# Action #
5153# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ is_domain_new 'mail' "$domain"
4848is_package_full ' MAIL_DOMAINS'
4949is_dir_symlink $HOMEDIR /$user /mail
5050
51+ # Perform verification if read-only mode is enabled
52+ check_hestia_demo_mode
5153
5254# ----------------------------------------------------------#
5355# Action #
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ is_user_free() {
2828 fi
2929}
3030
31-
3231# ----------------------------------------------------------#
3332# Verifications #
3433# ----------------------------------------------------------#
@@ -42,6 +41,8 @@ is_user_free "$user"
4241is_password_valid
4342is_package_valid
4443
44+ # Perform verification if read-only mode is enabled
45+ check_hestia_demo_mode
4546
4647# ----------------------------------------------------------#
4748# Action #
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ format_domain
3535format_domain_idn
3636format_aliases
3737
38+ # Perform verification if read-only mode is enabled
39+ check_hestia_demo_mode
3840
3941# ----------------------------------------------------------#
4042# Verifications #
You can’t perform that action at this time.
0 commit comments