From df886ffa25ca2f4e97293ee94f60c51fa82c4513 Mon Sep 17 00:00:00 2001 From: neil Date: Tue, 5 Apr 2016 19:18:19 +0800 Subject: [PATCH] fix apache mode: It's not necessary to chown for apache mode. --- le.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/le.sh b/le.sh index 7544f7f..f0626fc 100755 --- a/le.sh +++ b/le.sh @@ -1127,10 +1127,11 @@ issue() { mkdir -p "$wellknown_path" 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