mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-04 20:32:19 +08:00
Make certificate domain name part of the backup directory name.
This commit is contained in:
@@ -34,7 +34,7 @@ ssh_deploy() {
|
|||||||
_cfullchain="$5"
|
_cfullchain="$5"
|
||||||
_cmdstr=""
|
_cmdstr=""
|
||||||
_homedir='~'
|
_homedir='~'
|
||||||
_backupprefix="$_homedir/.acme_ssh_deploy/certs-backup"
|
_backupprefix="$_homedir/.acme_ssh_deploy/$_cdomain-backup"
|
||||||
_backupdir="$_backupprefix-$(_utc_date | tr ' ' '-')"
|
_backupdir="$_backupprefix-$(_utc_date | tr ' ' '-')"
|
||||||
|
|
||||||
if [ -f "$DOMAIN_CONF" ]; then
|
if [ -f "$DOMAIN_CONF" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user