Skip to content

Commit 9677a03

Browse files
author
Kristan Kenney
committed
Fix restart detection in v-rebuild-web-domains
1 parent 8436a00 commit 9677a03

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

bin/v-rebuild-web-domains

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,14 @@ done
117117
# Updating user counters
118118
$BIN/v-update-user-counters $user
119119

120-
# Restarting web server
121-
$BIN/v-restart-web $restart
122-
check_result $? "Web restart failed" >/dev/null
120+
if [ "$restart" = "yes" ]; then
121+
# Restarting web server
122+
$BIN/v-restart-web $restart
123+
check_result $? "Web restart failed" >/dev/null
123124

124-
$BIN/v-restart-proxy $restart
125-
check_result $? "Proxy restart failed" >/dev/null
125+
$BIN/v-restart-proxy $restart
126+
check_result $? "Proxy restart failed" >/dev/null
127+
fi
126128

127129
# Logging
128130
log_event "$OK" "$ARGUMENTS"

0 commit comments

Comments
 (0)