Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
7a60c14b
Commit
7a60c14b
authored
Jul 26, 2016
by
neil
Committed by
GitHub
Jul 26, 2016
Browse files
Merge pull request #243 from t413/master
Support for shells without 'stat' (busybox ash)
parents
c9c31c04
3ad08e95
Changes
2
Show whitespace changes
Inline
Side-by-side
README.md
View file @
7a60c14b
...
@@ -32,6 +32,7 @@ Wiki: https://github.com/Neilpang/acme.sh/wiki
...
@@ -32,6 +32,7 @@ Wiki: https://github.com/Neilpang/acme.sh/wiki
|14|-----| Cloud Linux https://github.com/Neilpang/le/issues/111
|14|-----| Cloud Linux https://github.com/Neilpang/le/issues/111
|15|
[

](https://github.com/Neilpang/letest#here-are-the-latest-status)|OpenBSD
|15|
[

](https://github.com/Neilpang/letest#here-are-the-latest-status)|OpenBSD
|16|
[

](https://github.com/Neilpang/letest#here-are-the-latest-status)|Mageia
|16|
[

](https://github.com/Neilpang/letest#here-are-the-latest-status)|Mageia
|17|-----| OpenWRT: Tested and working. See
[
wiki page
](
https://github.com/Neilpang/acme.sh/wiki/How-to-run-on-OpenWRT
)
For all build statuses, check our
[
daily build project
](
https://github.com/Neilpang/acmetest
)
:
For all build statuses, check our
[
daily build project
](
https://github.com/Neilpang/acmetest
)
:
...
...
acme.sh
View file @
7a60c14b
...
@@ -549,6 +549,8 @@ _stat() {
...
@@ -549,6 +549,8 @@ _stat() {
if
stat
-f
'%Su:%Sg'
"
$1
"
2>/dev/null
;
then
if
stat
-f
'%Su:%Sg'
"
$1
"
2>/dev/null
;
then
return
return
fi
fi
return
1
;
#error, 'stat' not found
}
}
#keyfile
#keyfile
...
@@ -1656,9 +1658,12 @@ issue() {
...
@@ -1656,9 +1658,12 @@ issue() {
mkdir
-p
"
$wellknown_path
"
mkdir
-p
"
$wellknown_path
"
printf
"%s"
"
$keyauthorization
"
>
"
$wellknown_path
/
$token
"
printf
"%s"
"
$keyauthorization
"
>
"
$wellknown_path
/
$token
"
if
[
!
"
$usingApache
"
]
;
then
if
[
!
"
$usingApache
"
]
;
then
webroot_owner
=
$(
_stat
$_currentRoot
)
if
webroot_owner
=
$(
_stat
$_currentRoot
)
;
then
_debug
"Changing owner/group of .well-known to
$webroot_owner
"
_debug
"Changing owner/group of .well-known to
$webroot_owner
"
chown
-R
$webroot_owner
"
$_currentRoot
/.well-known"
chown
-R
$webroot_owner
"
$_currentRoot
/.well-known"
else
_debug
"not chaning owner/group of webroot"
;
fi
fi
fi
fi
fi
...
...
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