Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
44df2967
Commit
44df2967
authored
Mar 09, 2016
by
neil
Browse files
fix compatible for pfsense.
parent
1ad65f7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
44df2967
...
...
@@ -205,6 +205,18 @@ _time2str() {
}
_stat
()
{
#Linux
if
stat
-c
'%U:%G'
"
$1
"
2>/dev/null
;
then
return
fi
#BSD
if
stat
-f
'%Su:%Sg'
"
$1
"
2>/dev/null
;
then
return
fi
}
_send_signed_request
()
{
url
=
$1
payload
=
$2
...
...
@@ -819,7 +831,7 @@ issue() {
mkdir
-p
"
$wellknown_path
"
echo
-n
"
$keyauthorization
"
>
"
$wellknown_path
/
$token
"
webroot_owner
=
$(
stat
-c
'%U:%G'
$Le_Webroot
)
webroot_owner
=
$(
_
stat
$Le_Webroot
)
_debug
"Changing owner/group of .well-known to
$webroot_owner
"
chown
-R
$webroot_owner
"
$Le_Webroot
/.well-known"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment