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
b7b8311c
Commit
b7b8311c
authored
Jan 09, 2016
by
neil
Browse files
minor
parent
9a76ef2f
Changes
1
Show whitespace changes
Inline
Side-by-side
le.sh
View file @
b7b8311c
...
@@ -237,6 +237,14 @@ _initpath() {
...
@@ -237,6 +237,14 @@ _initpath() {
WORKING_DIR
=
$HOME
/.le
WORKING_DIR
=
$HOME
/.le
fi
fi
if
[
-z
"
$ACME_DIR
"
]
;
then
ACME_DIR
=
"/home/.acme"
fi
if
[
-z
"
$APACHE_CONF_BACKUP_DIR
"
]
;
then
APACHE_CONF_BACKUP_DIR
=
"
$WORKING_DIR
/"
fi
domain
=
"
$1
"
domain
=
"
$1
"
mkdir
-p
"
$WORKING_DIR
"
mkdir
-p
"
$WORKING_DIR
"
ACCOUNT_KEY_PATH
=
"
$WORKING_DIR
/account.acc"
ACCOUNT_KEY_PATH
=
"
$WORKING_DIR
/account.acc"
...
@@ -257,13 +265,7 @@ _initpath() {
...
@@ -257,13 +265,7 @@ _initpath() {
CA_CERT_PATH
=
"
$WORKING_DIR
/
$domain
/ca.cer"
CA_CERT_PATH
=
"
$WORKING_DIR
/
$domain
/ca.cer"
if
[
-z
"
$ACME_DIR
"
]
;
then
ACME_DIR
=
"/home/.acme"
fi
if
[
-z
"
$APACHE_CONF_BACKUP_DIR
"
]
;
then
APACHE_CONF_BACKUP_DIR
=
"
$WORKING_DIR
/"
fi
}
}
...
@@ -280,6 +282,7 @@ _apachePath() {
...
@@ -280,6 +282,7 @@ _apachePath() {
}
}
_restoreApache
()
{
_restoreApache
()
{
_initpath
if
!
_apachePath
;
then
if
!
_apachePath
;
then
return
1
return
1
fi
fi
...
@@ -300,6 +303,7 @@ _restoreApache() {
...
@@ -300,6 +303,7 @@ _restoreApache() {
}
}
_setApache
()
{
_setApache
()
{
_initpath
if
!
_apachePath
;
then
if
!
_apachePath
;
then
return
1
return
1
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