Skip to content

Commit ad5060a

Browse files
committed
Fix wrong if condition in web root detection.
1 parent 4a113a8 commit ad5060a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-letsencrypt-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ for auth in $authz; do
252252

253253
else
254254
# Get root directory from configuration
255-
if [ ! -z "$domain_config/nginx.conf" ]; then
255+
if [ -f "$domain_config/nginx.conf" ]; then
256256
well_known="$(cat $domain_config/nginx.conf | grep root | \
257257
awk '{split($0, a, " "); print a[2]}' | \
258258
sed 's/;$//')/.well-known"

0 commit comments

Comments
 (0)