|
|
@@ -95,7 +95,11 @@ fi
|
|
|
# Starting rebuild loop for each web domain
|
|
|
for domain in $($BIN/v-list-web-domains $user plain |cut -f 1); do
|
|
|
if [ ! -z "$WEB_BACKEND" ]; then
|
|
|
- template=$(get_object_value 'web' 'DOMAIN' "$domain" '$BACKEND')
|
|
|
+ template=$(get_object_value 'web' 'DOMAIN' "$domain" '$BACKEND');
|
|
|
+ if [ -z "$template" ]; then
|
|
|
+ template="default"
|
|
|
+ update_object_value 'web' 'DOMAIN' "$domain" '$BACKEND' 'default'
|
|
|
+ fi
|
|
|
$BIN/v-add-web-domain-backend $user $domain $template $restart
|
|
|
fi
|
|
|
rebuild_web_domain_conf
|