From ab5ec2a2d2d500687bf1877c5645837a2eecc949 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 23 Jan 2016 22:29:06 +0800 Subject: [PATCH] fix bug: Le_RealCertPath was missing from installcert command --- le.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/le.sh b/le.sh index 117bbd5..fe3b784 100755 --- a/le.sh +++ b/le.sh @@ -851,6 +851,13 @@ installcert() { _setopt "$DOMAIN_CONF" "Le_RealKeyPath" "=" "\"$Le_RealKeyPath\"" _setopt "$DOMAIN_CONF" "Le_ReloadCmd" "=" "\"$Le_ReloadCmd\"" + if [ "$Le_RealCertPath" ] ; then + if [ -f "$Le_RealCertPath" ] ; then + cp -p "$Le_RealCertPath" "$Le_RealCertPath".bak + fi + cat "$CERT_PATH" > "$Le_RealCertPath" + fi + if [ "$Le_RealCACertPath" ] ; then if [ -f "$Le_RealCACertPath" ] ; then cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak