We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad5060a commit ada4a10Copy full SHA for ada4a10
bin/v-add-letsencrypt-domain
@@ -252,12 +252,13 @@ for auth in $authz; do
252
253
else
254
# Get root directory from configuration
255
- if [ -f "$domain_config/nginx.conf" ]; then
256
- well_known="$(cat $domain_config/nginx.conf | grep root | \
+ domain_config="$HOMEDIR/$user/conf/web/$domain"
+ if [ -f "${domain}_config/nginx.conf" ]; then
257
+ well_known="$(cat ${domain}_config/nginx.conf | grep root | \
258
awk '{split($0, a, " "); print a[2]}' | \
259
sed 's/;$//')/.well-known"
260
- well_known="$(cat $domain_config/apache2.conf | grep root | \
261
+ well_known="$(cat ${domain}_config/apache2.conf | grep root | \
262
263
264
fi
0 commit comments