Skip to content

Commit 9494400

Browse files
committed
restart nginx only if it is enabled
1 parent 3e8f6b6 commit 9494400

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bin/v-delete-web-domains

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ if [ "$restart" != 'no' ]; then
4949
exit $E_RESTART
5050
fi
5151

52-
$BIN/v-restart-proxy
53-
if [ $? -ne 0 ]; then
54-
exit $E_RESTART
52+
if [ ! -z "$PROXY_SYSTEM" ]; then
53+
$BIN/v-restart-proxy
54+
if [ $? -ne 0 ]; then
55+
exit $E_RESTART
56+
fi
5557
fi
5658
fi
5759

0 commit comments

Comments
 (0)