Browse Source

fix apache mode: It's not necessary to chown for apache mode.

neil 9 years ago
parent
commit
df886ffa25
1 changed files with 5 additions and 4 deletions
  1. 5 4
      le.sh

+ 5 - 4
le.sh

@@ -1127,10 +1127,11 @@ issue() {
 
 
         mkdir -p "$wellknown_path"
         mkdir -p "$wellknown_path"
         echo -n "$keyauthorization" > "$wellknown_path/$token"
         echo -n "$keyauthorization" > "$wellknown_path/$token"
-
-        webroot_owner=$(_stat $Le_Webroot)
-        _debug "Changing owner/group of .well-known to $webroot_owner"
-        chown -R $webroot_owner "$Le_Webroot/.well-known"
+        if [[ ! "$usingApache" ]] ; then
+          webroot_owner=$(_stat $Le_Webroot)
+          _debug "Changing owner/group of .well-known to $webroot_owner"
+          chown -R $webroot_owner "$Le_Webroot/.well-known"
+        fi
         
         
       fi
       fi
     fi
     fi