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
d88f8e86
Commit
d88f8e86
authored
Feb 12, 2017
by
neilpang
Browse files
move backup to sub folder.
parent
fd72cced
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
d88f8e86
...
@@ -2060,7 +2060,7 @@ _initpath() {
...
@@ -2060,7 +2060,7 @@ _initpath() {
fi
fi
if
[
-z
"
$DOMAIN_BACKUP_PATH
"
]
;
then
if
[
-z
"
$DOMAIN_BACKUP_PATH
"
]
;
then
DOMAIN_BACKUP_PATH
=
"
$DOMAIN_PATH
"
DOMAIN_BACKUP_PATH
=
"
$DOMAIN_PATH
/backup
"
fi
fi
if
[
-z
"
$DOMAIN_CONF
"
]
;
then
if
[
-z
"
$DOMAIN_CONF
"
]
;
then
...
@@ -3616,6 +3616,7 @@ _installcert() {
...
@@ -3616,6 +3616,7 @@ _installcert() {
_info
"Installing cert to:
$Le_RealCertPath
"
_info
"Installing cert to:
$Le_RealCertPath
"
if
[
-f
"
$Le_RealCertPath
"
]
&&
[
!
"
$IS_RENEW
"
]
;
then
if
[
-f
"
$Le_RealCertPath
"
]
&&
[
!
"
$IS_RENEW
"
]
;
then
mkdir
-p
"
$DOMAIN_BACKUP_PATH
"
cp
"
$Le_RealCertPath
"
"
$DOMAIN_BACKUP_PATH
/cert.bak"
cp
"
$Le_RealCertPath
"
"
$DOMAIN_BACKUP_PATH
/cert.bak"
fi
fi
cat
"
$CERT_PATH
"
>
"
$Le_RealCertPath
"
cat
"
$CERT_PATH
"
>
"
$Le_RealCertPath
"
...
@@ -3629,6 +3630,7 @@ _installcert() {
...
@@ -3629,6 +3630,7 @@ _installcert() {
cat
"
$CA_CERT_PATH
"
>>
"
$Le_RealCACertPath
"
cat
"
$CA_CERT_PATH
"
>>
"
$Le_RealCACertPath
"
else
else
if
[
-f
"
$Le_RealCACertPath
"
]
&&
[
!
"
$IS_RENEW
"
]
;
then
if
[
-f
"
$Le_RealCACertPath
"
]
&&
[
!
"
$IS_RENEW
"
]
;
then
mkdir
-p
"
$DOMAIN_BACKUP_PATH
"
cp
"
$Le_RealCACertPath
"
"
$DOMAIN_BACKUP_PATH
/ca.bak"
cp
"
$Le_RealCACertPath
"
"
$DOMAIN_BACKUP_PATH
/ca.bak"
fi
fi
cat
"
$CA_CERT_PATH
"
>
"
$Le_RealCACertPath
"
cat
"
$CA_CERT_PATH
"
>
"
$Le_RealCACertPath
"
...
@@ -3639,6 +3641,7 @@ _installcert() {
...
@@ -3639,6 +3641,7 @@ _installcert() {
_info
"Installing key to:
$Le_RealKeyPath
"
_info
"Installing key to:
$Le_RealKeyPath
"
if
[
-f
"
$Le_RealKeyPath
"
]
&&
[
!
"
$IS_RENEW
"
]
;
then
if
[
-f
"
$Le_RealKeyPath
"
]
&&
[
!
"
$IS_RENEW
"
]
;
then
mkdir
-p
"
$DOMAIN_BACKUP_PATH
"
cp
"
$Le_RealKeyPath
"
"
$DOMAIN_BACKUP_PATH
/key.bak"
cp
"
$Le_RealKeyPath
"
"
$DOMAIN_BACKUP_PATH
/key.bak"
fi
fi
cat
"
$CERT_KEY_PATH
"
>
"
$Le_RealKeyPath
"
cat
"
$CERT_KEY_PATH
"
>
"
$Le_RealKeyPath
"
...
@@ -3648,6 +3651,7 @@ _installcert() {
...
@@ -3648,6 +3651,7 @@ _installcert() {
_info
"Installing full chain to:
$Le_RealFullChainPath
"
_info
"Installing full chain to:
$Le_RealFullChainPath
"
if
[
-f
"
$Le_RealFullChainPath
"
]
&&
[
!
"
$IS_RENEW
"
]
;
then
if
[
-f
"
$Le_RealFullChainPath
"
]
&&
[
!
"
$IS_RENEW
"
]
;
then
mkdir
-p
"
$DOMAIN_BACKUP_PATH
"
cp
"
$Le_RealFullChainPath
"
"
$DOMAIN_BACKUP_PATH
/fullchain.bak"
cp
"
$Le_RealFullChainPath
"
"
$DOMAIN_BACKUP_PATH
/fullchain.bak"
fi
fi
cat
"
$CERT_FULLCHAIN_PATH
"
>
"
$Le_RealFullChainPath
"
cat
"
$CERT_FULLCHAIN_PATH
"
>
"
$Le_RealFullChainPath
"
...
...
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