Skip to content

Commit e287d8c

Browse files
committed
Restart proxy system only if it exists.
1 parent 6cdef97 commit e287d8c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/v-add-letsencrypt-domain

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,10 @@ for auth in $authz; do
239239
if [ ! -e "$sconf" ]; then
240240
ln -s "$conf" "$sconf"
241241
fi
242-
$BIN/v-restart-proxy
243-
check_result $? "Proxy restart failed" > /dev/null
242+
if [ ! -z "$PROXY_SYSTEM" ]; then
243+
$BIN/v-restart-proxy
244+
check_result $? "Proxy restart failed" > /dev/null
245+
fi
244246
else
245247
# Get root directory from configuration
246248
domain_config="$HOMEDIR/$user/conf/web/$domain"

0 commit comments

Comments
 (0)