mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-23 05:31:42 +00:00
commit
50d7b8452d
16
acme.sh
16
acme.sh
@ -2059,6 +2059,10 @@ _initpath() {
|
|||||||
_debug DOMAIN_PATH "$DOMAIN_PATH"
|
_debug DOMAIN_PATH "$DOMAIN_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$DOMAIN_BACKUP_PATH" ]; then
|
||||||
|
DOMAIN_BACKUP_PATH="$DOMAIN_PATH/backup"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$DOMAIN_CONF" ]; then
|
if [ -z "$DOMAIN_CONF" ]; then
|
||||||
DOMAIN_CONF="$DOMAIN_PATH/$domain.conf"
|
DOMAIN_CONF="$DOMAIN_PATH/$domain.conf"
|
||||||
fi
|
fi
|
||||||
@ -3612,7 +3616,8 @@ _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
|
||||||
cp "$Le_RealCertPath" "$Le_RealCertPath".bak
|
mkdir -p "$DOMAIN_BACKUP_PATH"
|
||||||
|
cp "$Le_RealCertPath" "$DOMAIN_BACKUP_PATH/cert.bak"
|
||||||
fi
|
fi
|
||||||
cat "$CERT_PATH" >"$Le_RealCertPath"
|
cat "$CERT_PATH" >"$Le_RealCertPath"
|
||||||
fi
|
fi
|
||||||
@ -3625,7 +3630,8 @@ _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
|
||||||
cp "$Le_RealCACertPath" "$Le_RealCACertPath".bak
|
mkdir -p "$DOMAIN_BACKUP_PATH"
|
||||||
|
cp "$Le_RealCACertPath" "$DOMAIN_BACKUP_PATH/ca.bak"
|
||||||
fi
|
fi
|
||||||
cat "$CA_CERT_PATH" >"$Le_RealCACertPath"
|
cat "$CA_CERT_PATH" >"$Le_RealCACertPath"
|
||||||
fi
|
fi
|
||||||
@ -3635,7 +3641,8 @@ _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
|
||||||
cp "$Le_RealKeyPath" "$Le_RealKeyPath".bak
|
mkdir -p "$DOMAIN_BACKUP_PATH"
|
||||||
|
cp "$Le_RealKeyPath" "$DOMAIN_BACKUP_PATH/key.bak"
|
||||||
fi
|
fi
|
||||||
cat "$CERT_KEY_PATH" >"$Le_RealKeyPath"
|
cat "$CERT_KEY_PATH" >"$Le_RealKeyPath"
|
||||||
fi
|
fi
|
||||||
@ -3644,7 +3651,8 @@ _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
|
||||||
cp "$Le_RealFullChainPath" "$Le_RealFullChainPath".bak
|
mkdir -p "$DOMAIN_BACKUP_PATH"
|
||||||
|
cp "$Le_RealFullChainPath" "$DOMAIN_BACKUP_PATH/fullchain.bak"
|
||||||
fi
|
fi
|
||||||
cat "$CERT_FULLCHAIN_PATH" >"$Le_RealFullChainPath"
|
cat "$CERT_FULLCHAIN_PATH" >"$Le_RealFullChainPath"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user