Skip to content

Commit bea30a0

Browse files
author
Serghey Rodin
committed
compact syntax for web restart
1 parent 20ebed3 commit bea30a0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

bin/v-add-web-domain

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,13 @@ echo "DOMAIN='$domain' IP='$ip' IP6='' ALIAS='$ALIAS' TPL='$WEB_TEMPLATE'\
174174
SUSPENDED='no' TIME='$time' DATE='$date'" >> $USER_DATA/web.conf
175175

176176
# Restarting web server
177-
if [ "$restart" != 'no' ]; then
178-
$BIN/v-restart-web
179-
check_result $? "Web restart failed" >/dev/null
180-
181-
# Restarting proxy server
182-
if [ ! -z "$PROXY_SYSTEM" ]; then
183-
$BIN/v-restart-proxy
184-
check_result $? "Proxy restart failed" >/dev/null
185-
fi
177+
$BIN/v-restart-web $restart
178+
check_result $? "Web restart failed" >/dev/null
179+
180+
# Restarting proxy server
181+
if [ ! -z "$PROXY_SYSTEM" ]; then
182+
$BIN/v-restart-proxy $restart
183+
check_result $? "Proxy restart failed" >/dev/null
186184
fi
187185

188186
# Logging

0 commit comments

Comments
 (0)