mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 05:01:40 +00:00
Chown directories to parent
- You might configure web-servers to not allow reading files owned by root (or user you execute as), modified script to try chowning the .well-known recursively - If you do not have chown rights it will work anyway
This commit is contained in:
parent
2bd7774b8f
commit
4b70d69029
5
le.sh
5
le.sh
@ -537,6 +537,11 @@ issue() {
|
||||
|
||||
mkdir -p "$wellknown_path"
|
||||
echo -n "$keyauthorization" > "$wellknown_path/$token"
|
||||
|
||||
webroot_owner=$(stat -c '%U' $Le_Webroot)
|
||||
_debug "Changing owner of .well-known to $webroot_owner"
|
||||
chown -R $webroot_owner. "$Le_Webroot/.well-known"
|
||||
|
||||
fi
|
||||
wellknown_url="http://$d/.well-known/acme-challenge/$token"
|
||||
_debug wellknown_url "$wellknown_url"
|
||||
|
Loading…
Reference in New Issue
Block a user