mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 21:21:42 +00:00
This commit is contained in:
parent
319e0ae3cf
commit
18e46962c2
10
acme.sh
10
acme.sh
@ -1244,12 +1244,20 @@ _starttlsserver() {
|
|||||||
_debug serverproc $serverproc
|
_debug serverproc $serverproc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#file
|
||||||
|
_readlink() {
|
||||||
|
_rf="$1"
|
||||||
|
if ! readlink -f "$_rf" 2>/dev/null; then
|
||||||
|
readlink "$_rf"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
__initHome() {
|
__initHome() {
|
||||||
if [ -z "$_SCRIPT_HOME" ] ; then
|
if [ -z "$_SCRIPT_HOME" ] ; then
|
||||||
if _exists readlink && _exists dirname ; then
|
if _exists readlink && _exists dirname ; then
|
||||||
_debug "Lets guess script dir."
|
_debug "Lets guess script dir."
|
||||||
_debug "_SCRIPT_" "$_SCRIPT_"
|
_debug "_SCRIPT_" "$_SCRIPT_"
|
||||||
_script="$(readlink -f "$_SCRIPT_")"
|
_script="$(_readlink "$_SCRIPT_")"
|
||||||
_debug "_script" "$_script"
|
_debug "_script" "$_script"
|
||||||
_script_home="$(dirname "$_script")"
|
_script_home="$(dirname "$_script")"
|
||||||
_debug "_script_home" "$_script_home"
|
_debug "_script_home" "$_script_home"
|
||||||
|
Loading…
Reference in New Issue
Block a user