Skip to content

Commit c8773b1

Browse files
authored
Add $restart flag to v-add-web-domain-backend call (hestiacp#1)
v-add-web-domain-backend was always triggering a restart, even if $4 = 'no' (restart = no) was requested on original call to v-add-web-domain. Solution parameters needs to be passed onto the sub function to stop unnecessary restarts.
1 parent 2e05ab4 commit c8773b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-web-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ if [ ! -z "$WEB_BACKEND" ]; then
109109
fi
110110
fi
111111
BACKEND="$BACKEND_TEMPLATE"
112-
$BIN/v-add-web-domain-backend "$user" "$domain" $BACKEND_TEMPLATE
112+
$BIN/v-add-web-domain-backend "$user" "$domain" $BACKEND_TEMPLATE $restart
113113
check_result $? "Backend error" >/dev/null
114114
fi
115115

0 commit comments

Comments
 (0)