We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8436a00 commit 9677a03Copy full SHA for 9677a03
bin/v-rebuild-web-domains
@@ -117,12 +117,14 @@ done
117
# Updating user counters
118
$BIN/v-update-user-counters $user
119
120
-# Restarting web server
121
-$BIN/v-restart-web $restart
122
-check_result $? "Web restart failed" >/dev/null
+if [ "$restart" = "yes" ]; then
+ # Restarting web server
+ $BIN/v-restart-web $restart
123
+ check_result $? "Web restart failed" >/dev/null
124
-$BIN/v-restart-proxy $restart
125
-check_result $? "Proxy restart failed" >/dev/null
+ $BIN/v-restart-proxy $restart
126
+ check_result $? "Proxy restart failed" >/dev/null
127
+fi
128
129
# Logging
130
log_event "$OK" "$ARGUMENTS"
0 commit comments