Skip to content

Commit 892b3ca

Browse files
committed
fix account.conf permission
#6708 (comment)
1 parent 4de00d4 commit 892b3ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

acme.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,6 +2358,7 @@ _setopt() {
23582358
fi
23592359
if [ ! -f "$__conf" ]; then
23602360
touch "$__conf"
2361+
chmod 600 "$__conf"
23612362
fi
23622363
if [ -n "$(_tail_c 1 <"$__conf")" ]; then
23632364
echo >>"$__conf"
@@ -6671,6 +6672,7 @@ _initconf() {
66716672
#NO_TIMESTAMP=1
66726673
66736674
" >"$ACCOUNT_CONF_PATH"
6675+
chmod 600 "$ACCOUNT_CONF_PATH"
66746676
fi
66756677
}
66766678

0 commit comments

Comments
 (0)