Commit 34d91b9f authored by neil's avatar neil
Browse files

support fullchain. If the real cert path equals to the ca cert path, we will...

support fullchain.  If the real cert path equals to the ca cert path, we will append the ca cert to the domain cert, which makes it a fullchain.
parent c24e86a6
......@@ -862,7 +862,12 @@ installcert() {
if [ -f "$Le_RealCACertPath" ] ; then
cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak
fi
cat "$CA_CERT_PATH" > "$Le_RealCACertPath"
if [ "$Le_RealCACertPath" == "$Le_RealCertPath" ] ; then
echo "" >> "$Le_RealCACertPath"
cat "$CA_CERT_PATH" >> "$Le_RealCACertPath"
else
cat "$CA_CERT_PATH" > "$Le_RealCACertPath"
fi
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment