mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
Also changing group of .well-known directory
This commit is contained in:
parent
4b70d69029
commit
edcbe247cf
6
le.sh
6
le.sh
@ -538,9 +538,9 @@ issue() {
|
|||||||
mkdir -p "$wellknown_path"
|
mkdir -p "$wellknown_path"
|
||||||
echo -n "$keyauthorization" > "$wellknown_path/$token"
|
echo -n "$keyauthorization" > "$wellknown_path/$token"
|
||||||
|
|
||||||
webroot_owner=$(stat -c '%U' $Le_Webroot)
|
webroot_owner=$(stat -c '%U:%G' $Le_Webroot)
|
||||||
_debug "Changing owner of .well-known to $webroot_owner"
|
_debug "Changing owner/group of .well-known to $webroot_owner"
|
||||||
chown -R $webroot_owner. "$Le_Webroot/.well-known"
|
chown -R $webroot_owner "$Le_Webroot/.well-known"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
wellknown_url="http://$d/.well-known/acme-challenge/$token"
|
wellknown_url="http://$d/.well-known/acme-challenge/$token"
|
||||||
|
Loading…
Reference in New Issue
Block a user