fix debug.log permissions

This commit is contained in:
Mononaut 2025-10-14 07:34:13 +00:00
parent 23eca9dfee
commit cdca6f94b8
No known key found for this signature in database
GPG key ID: A3F058E41374C04E

View file

@ -88,6 +88,10 @@ bitcoin_precmd()
{
bitcoin_checkconfig
# ensure debug.log exists & override default permissions
touch "${bitcoin_data_dir}/debug.log"
chmod 644 "${bitcoin_data_dir}/debug.log"
pid=$(check_pidfile "${pidfile}" "${procname}")
if [ -z "${pid}" ]
then