Skip to content

Commit

Permalink
fix #1123
Browse files Browse the repository at this point in the history
  • Loading branch information
neilpang committed Dec 9, 2017
1 parent 4249e13 commit 8201458
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4308,7 +4308,12 @@ _installcert() {
if [ -f "$_real_key" ] && [ ! "$IS_RENEW" ]; then
cp "$_real_key" "$_backup_path/key.bak"
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"

This comment has been minimized.

Copy link
@jlduran

jlduran Feb 14, 2018

Contributor

Shouldn't this be 600?

fi
fi

if [ "$_real_fullchain" ]; then
Expand Down

0 comments on commit 8201458

Please sign in to comment.