Skip to content

Commit 6cdef97

Browse files
committed
Remove if condition for acme nginx config.
1 parent f5de3b2 commit 6cdef97

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

bin/v-add-letsencrypt-domain

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,11 @@ for auth in $authz; do
231231
if [ "$WEB_SYSTEM" = 'nginx' ] || [ "$PROXY_SYSTEM" = 'nginx' ]; then
232232
conf="$HOMEDIR/$user/conf/web/$domain/nginx.conf_letsencrypt"
233233
sconf="$HOMEDIR/$user/conf/web/$domain/nginx.ssl.conf_letsencrypt"
234-
if [ ! -e "$conf" ]; then
235-
echo 'location ~ "^/\.well-known/acme-challenge/(.*)$" {' \
236-
> $conf
237-
echo ' default_type text/plain;' >> $conf
238-
echo ' return 200 "$1.'$THUMB'";' >> $conf
239-
echo '}' >> $conf
240-
fi
234+
echo 'location ~ "^/\.well-known/acme-challenge/(.*)$" {' \
235+
> $conf
236+
echo ' default_type text/plain;' >> $conf
237+
echo ' return 200 "$1.'$THUMB'";' >> $conf
238+
echo '}' >> $conf
241239
if [ ! -e "$sconf" ]; then
242240
ln -s "$conf" "$sconf"
243241
fi

0 commit comments

Comments
 (0)