1
0
mirror of https://github.com/hiskaNG/acme.sh.git synced 2026-08-11 16:33:02 +00:00

Removed redundant backup in installcert when RealCACertPath == RealCertPath

This commit is contained in:
BlueAnanas
2016-03-03 14:51:07 +01:00
parent d62ee94019
commit 78552b183b
+3 -3
View File
@@ -1349,13 +1349,13 @@ installcert() {
fi
if [ "$Le_RealCACertPath" ] ; then
if [ -f "$Le_RealCACertPath" ] ; then
cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak
fi
if [ "$Le_RealCACertPath" == "$Le_RealCertPath" ] ; then
echo "" >> "$Le_RealCACertPath"
cat "$CA_CERT_PATH" >> "$Le_RealCACertPath"
else
if [ -f "$Le_RealCACertPath" ] ; then
cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak
fi
cat "$CA_CERT_PATH" > "$Le_RealCACertPath"
fi
fi