We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5de3b2 commit 6cdef97Copy full SHA for 6cdef97
1 file changed
bin/v-add-letsencrypt-domain
@@ -231,13 +231,11 @@ for auth in $authz; do
231
if [ "$WEB_SYSTEM" = 'nginx' ] || [ "$PROXY_SYSTEM" = 'nginx' ]; then
232
conf="$HOMEDIR/$user/conf/web/$domain/nginx.conf_letsencrypt"
233
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
+ echo 'location ~ "^/\.well-known/acme-challenge/(.*)$" {' \
+ > $conf
+ echo ' default_type text/plain;' >> $conf
+ echo ' return 200 "$1.'$THUMB'";' >> $conf
+ echo '}' >> $conf
241
if [ ! -e "$sconf" ]; then
242
ln -s "$conf" "$sconf"
243
fi
0 commit comments