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

This commit is contained in:
neil committed 2016-04-05 19:18:19 +08:00
1 parent c456d9543f
commit df886ffa25
1 file changed
+5 -4
+5 -4
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.