|
|
@@ -68,9 +68,10 @@ rebuild_mail_domain_conf
|
|
|
if [ ! -z "$WEB_SYSTEM" ] || [ ! -z "$PROXY_SYSTEM" ]; then
|
|
|
if [ ! -z "$IMAP_SYSTEM" ]; then
|
|
|
WEBMAIL=$(get_object_value 'web' 'DOMAIN' "$domain" "$WEBMAIL")
|
|
|
- if [ -z "$WEBMAIL" ]; then WEBMAIL='roundcube'; fi
|
|
|
- $BIN/v-delete-mail-domain-webmail $user $domain '' $restart 'yes'
|
|
|
- $BIN/v-add-mail-domain-webmail $user $domain $WEBMAIL '' $restart 'yes'
|
|
|
+ if [ ! -z "$WEBMAIL" ]; then
|
|
|
+ $BIN/v-delete-mail-domain-webmail $user $domain '' $restart 'yes'
|
|
|
+ $BIN/v-add-mail-domain-webmail $user $domain $WEBMAIL '' $restart 'yes'
|
|
|
+ fi
|
|
|
fi
|
|
|
fi
|
|
|
|