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