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 ada4a10 commit efb0129Copy full SHA for efb0129
bin/v-add-letsencrypt-domain
@@ -254,11 +254,11 @@ for auth in $authz; do
254
# Get root directory from configuration
255
domain_config="$HOMEDIR/$user/conf/web/$domain"
256
if [ -f "${domain}_config/nginx.conf" ]; then
257
- well_known="$(cat ${domain}_config/nginx.conf | grep root | \
+ well_known="$(cat ${domain}_config/nginx.conf | egrep '^\s+root'| \
258
awk '{split($0, a, " "); print a[2]}' | \
259
sed 's/;$//')/.well-known"
260
else
261
- well_known="$(cat ${domain}_config/apache2.conf | grep root | \
+ well_known="$(cat ${domain}_config/apache2.conf | egrep '^\s+root'| \
262
263
264
fi
0 commit comments