File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed
Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 5454
5555# Working on web domain
5656if [ -n " $WEB_SYSTEM " ]; then
57- $BIN /v-add-web-domain " $user " " $domain " " $ip " ' no'
58- check_result $? " can't add web domain" > /dev/null
57+ check1=$( is_package_full ' WEB_DOMAINS' )
58+ if [ $? -eq 0 ]; then
59+ $BIN /v-add-web-domain " $user " " $domain " " $ip " ' no'
60+ check_result $? " can't add web domain"
61+ fi
5962fi
6063
6164# Working on DNS domain
6265if [ -n " $DNS_SYSTEM " ]; then
63- $BIN /v-add-dns-domain " $user " " $domain " " $ip " " " " " " " " " " " " " " " " " " no"
64- check_result $? " can't add dns domain" > /dev/null
66+ check2=$( is_package_full ' DNS_DOMAINS' )
67+ if [ $? -eq 0 ]; then
68+ $BIN /v-add-dns-domain " $user " " $domain " " $ip " " " " " " " " " " " " " " " " " " no"
69+ check_result $? " can't add dns domain"
70+ fi
6571fi
6672
6773# Working on mail domain
6874if [ -n " $MAIL_SYSTEM " ]; then
69- $BIN /v-add-mail-domain $user $domain ' no'
70- check_result $? " can't add mail domain" > /dev/null
75+ check3=$( is_package_full ' MAIL_DOMAINS' )
76+ if [ $? -eq 0 ]; then
77+ $BIN /v-add-mail-domain $user $domain ' no'
78+ check_result $? " can't add mail domain"
79+ fi
80+ fi
81+
82+ if [[ " $check1 " != ' ' && " $check2 " != ' ' && " $check3 " != ' ' ]]; then
83+ check_result 8 " Package limit reached"
7184fi
7285
7386# Restarting services
You can’t perform that action at this time.
0 commit comments