mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
touch debug.log in bitcoin_checkconfig
This commit is contained in:
parent
cdca6f94b8
commit
fadc038419
1 changed files with 2 additions and 4 deletions
|
|
@ -64,6 +64,8 @@ bitcoin_checkconfig()
|
|||
echo "Missing data directory: ${bitcoin_data_dir}"
|
||||
exit 1
|
||||
fi
|
||||
touch "${bitcoin_data_dir}/debug.log"
|
||||
chmod 644 "${bitcoin_data_dir}/debug.log"
|
||||
chown -R "${bitcoin_user}:${bitcoin_group}" "${bitcoin_data_dir}"
|
||||
|
||||
if [ ! -f "${bitcoin_config_file}" ]
|
||||
|
|
@ -88,10 +90,6 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue