فهرست منبع

Use $WEB_SYSTEM instead of apache2

Ernesto Nicolás Carrea 5 سال پیش
والد
کامیت
d0b7184e23
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      bin/v-add-letsencrypt-domain

+ 2 - 2
bin/v-add-letsencrypt-domain

@@ -258,8 +258,8 @@ for auth in $authz; do
             else
             else
                 # Get root directory from configuration
                 # Get root directory from configuration
                 domain_config="$HOMEDIR/$user/conf/web/$domain"
                 domain_config="$HOMEDIR/$user/conf/web/$domain"
-                if [ -f "$domain_config/apache2.conf" ]; then
-                    well_known="$(cat $domain_config/apache2.conf | egrep \
+                if [ -f "$domain_config/$WEB_SYSTEM.conf" ]; then
+                    well_known="$(cat $domain_config/$WEB_SYSTEM.conf | egrep \
                                 '^\s+DocumentRoot'| awk '{split($0, a, " "); \
                                 '^\s+DocumentRoot'| awk '{split($0, a, " "); \
                                 print a[2]}')/.well-known"
                                 print a[2]}')/.well-known"
                 else
                 else