neilpang 2017-12-09 21:50:45 +08:00
parent 4249e13eb4
commit 8201458332

View File

@ -4308,7 +4308,12 @@ _installcert() {
if [ -f "$_real_key" ] && [ ! "$IS_RENEW" ]; then if [ -f "$_real_key" ] && [ ! "$IS_RENEW" ]; then
cp "$_real_key" "$_backup_path/key.bak" cp "$_real_key" "$_backup_path/key.bak"
fi fi
cat "$CERT_KEY_PATH" >"$_real_key" if [ -f "$_real_key" ]; then
cat "$CERT_KEY_PATH" >"$_real_key"
else
cat "$CERT_KEY_PATH" >"$_real_key"
chmod 700 "$_real_key"
fi
fi fi
if [ "$_real_fullchain" ]; then if [ "$_real_fullchain" ]; then