fix account.conf permission

https://github.com/acmesh-official/acme.sh/issues/6708#issuecomment-3745737079
This commit is contained in:
neil
2026-01-13 21:11:00 +01:00
parent 4de00d4603
commit 892b3ca219

View File

@@ -2358,6 +2358,7 @@ _setopt() {
fi fi
if [ ! -f "$__conf" ]; then if [ ! -f "$__conf" ]; then
touch "$__conf" touch "$__conf"
chmod 600 "$__conf"
fi fi
if [ -n "$(_tail_c 1 <"$__conf")" ]; then if [ -n "$(_tail_c 1 <"$__conf")" ]; then
echo >>"$__conf" echo >>"$__conf"
@@ -6671,6 +6672,7 @@ _initconf() {
#NO_TIMESTAMP=1 #NO_TIMESTAMP=1
" >"$ACCOUNT_CONF_PATH" " >"$ACCOUNT_CONF_PATH"
chmod 600 "$ACCOUNT_CONF_PATH"
fi fi
} }