mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-14 20:22:13 +08:00
fix account.conf permission
https://github.com/acmesh-official/acme.sh/issues/6708#issuecomment-3745737079
This commit is contained in:
2
acme.sh
2
acme.sh
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user