We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ebed3 commit bea30a0Copy full SHA for bea30a0
1 file changed
bin/v-add-web-domain
@@ -174,15 +174,13 @@ echo "DOMAIN='$domain' IP='$ip' IP6='' ALIAS='$ALIAS' TPL='$WEB_TEMPLATE'\
174
SUSPENDED='no' TIME='$time' DATE='$date'" >> $USER_DATA/web.conf
175
176
# 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
+$BIN/v-restart-web $restart
+check_result $? "Web restart failed" >/dev/null
+
+# Restarting proxy server
+if [ ! -z "$PROXY_SYSTEM" ]; then
+ $BIN/v-restart-proxy $restart
+ check_result $? "Proxy restart failed" >/dev/null
186
fi
187
188
# Logging
0 commit comments