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
7da50703
Commit
7da50703
authored
Sep 22, 2016
by
neil
Browse files
minor
parent
cfdaff5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
7da50703
...
@@ -1248,6 +1248,10 @@ _starttlsserver() {
...
@@ -1248,6 +1248,10 @@ _starttlsserver() {
_readlink
()
{
_readlink
()
{
_rf
=
"
$1
"
_rf
=
"
$1
"
if
!
readlink
-f
"
$_rf
"
2>/dev/null
;
then
if
!
readlink
-f
"
$_rf
"
2>/dev/null
;
then
if
_startswith
"
$_rf
"
"
\.
/
$PROJECT_ENTRY
"
;
then
printf
--
"%s"
"
$(
pwd
)
/
$PROJECT_ENTRY
"
return
0
fi
readlink
"
$_rf
"
readlink
"
$_rf
"
fi
fi
}
}
...
@@ -1272,7 +1276,7 @@ __initHome() {
...
@@ -1272,7 +1276,7 @@ __initHome() {
if
[
-z
"
$LE_WORKING_DIR
"
]
;
then
if
[
-z
"
$LE_WORKING_DIR
"
]
;
then
if
[
-f
"
$DEFAULT_INSTALL_HOME
/account.conf"
]
;
then
if
[
-f
"
$DEFAULT_INSTALL_HOME
/account.conf"
]
;
then
_debug
"It seems tha
$PROJECT_NAME
is already installed in
$DEFAULT_INSTALL_HOME
"
_debug
"It seems tha
t
$PROJECT_NAME
is already installed in
$DEFAULT_INSTALL_HOME
"
LE_WORKING_DIR
=
"
$DEFAULT_INSTALL_HOME
"
LE_WORKING_DIR
=
"
$DEFAULT_INSTALL_HOME
"
else
else
LE_WORKING_DIR
=
"
$_SCRIPT_HOME
"
LE_WORKING_DIR
=
"
$_SCRIPT_HOME
"
...
@@ -1283,6 +1287,7 @@ __initHome() {
...
@@ -1283,6 +1287,7 @@ __initHome() {
_debug
"Using default home:
$DEFAULT_INSTALL_HOME
"
_debug
"Using default home:
$DEFAULT_INSTALL_HOME
"
LE_WORKING_DIR
=
"
$DEFAULT_INSTALL_HOME
"
LE_WORKING_DIR
=
"
$DEFAULT_INSTALL_HOME
"
fi
fi
export
LE_WORKING_DIR
_DEFAULT_ACCOUNT_CONF_PATH
=
"
$LE_WORKING_DIR
/account.conf"
_DEFAULT_ACCOUNT_CONF_PATH
=
"
$LE_WORKING_DIR
/account.conf"
...
...
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