mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 13:32:49 +00:00
acme.sh fails if the target path does not exist
This commit is contained in:
parent
d9189a3b4d
commit
797d7a2733
8
acme.sh
8
acme.sh
@ -2897,7 +2897,7 @@ _installcert() {
|
|||||||
if [ -f "$Le_RealCertPath" ] && [ ! "$IS_RENEW" ] ; then
|
if [ -f "$Le_RealCertPath" ] && [ ! "$IS_RENEW" ] ; then
|
||||||
cp "$Le_RealCertPath" "$Le_RealCertPath".bak
|
cp "$Le_RealCertPath" "$Le_RealCertPath".bak
|
||||||
fi
|
fi
|
||||||
cat "$CERT_PATH" > "$Le_RealCertPath"
|
install -D "$CERT_PATH" "$Le_RealCertPath"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$Le_RealCACertPath" ] ; then
|
if [ "$Le_RealCACertPath" ] ; then
|
||||||
@ -2910,7 +2910,7 @@ _installcert() {
|
|||||||
if [ -f "$Le_RealCACertPath" ] && [ ! "$IS_RENEW" ] ; then
|
if [ -f "$Le_RealCACertPath" ] && [ ! "$IS_RENEW" ] ; then
|
||||||
cp "$Le_RealCACertPath" "$Le_RealCACertPath".bak
|
cp "$Le_RealCACertPath" "$Le_RealCACertPath".bak
|
||||||
fi
|
fi
|
||||||
cat "$CA_CERT_PATH" > "$Le_RealCACertPath"
|
install -D "$CA_CERT_PATH" "$Le_RealCACertPath"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -2921,7 +2921,7 @@ _installcert() {
|
|||||||
if [ -f "$Le_RealKeyPath" ] && [ ! "$IS_RENEW" ] ; then
|
if [ -f "$Le_RealKeyPath" ] && [ ! "$IS_RENEW" ] ; then
|
||||||
cp "$Le_RealKeyPath" "$Le_RealKeyPath".bak
|
cp "$Le_RealKeyPath" "$Le_RealKeyPath".bak
|
||||||
fi
|
fi
|
||||||
cat "$CERT_KEY_PATH" > "$Le_RealKeyPath"
|
install -D "$CERT_KEY_PATH" "$Le_RealKeyPath"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$Le_RealFullChainPath" ] ; then
|
if [ "$Le_RealFullChainPath" ] ; then
|
||||||
@ -2930,7 +2930,7 @@ _installcert() {
|
|||||||
if [ -f "$Le_RealFullChainPath" ] && [ ! "$IS_RENEW" ] ; then
|
if [ -f "$Le_RealFullChainPath" ] && [ ! "$IS_RENEW" ] ; then
|
||||||
cp "$Le_RealFullChainPath" "$Le_RealFullChainPath".bak
|
cp "$Le_RealFullChainPath" "$Le_RealFullChainPath".bak
|
||||||
fi
|
fi
|
||||||
cat "$CERT_FULLCHAIN_PATH" > "$Le_RealFullChainPath"
|
install -D "$CERT_FULLCHAIN_PATH" "$Le_RealFullChainPath"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$Le_ReloadCmd" ] ; then
|
if [ "$Le_ReloadCmd" ] ; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user