#4300 make sure bitcoin debug.log exists

This commit is contained in:
rootzoll 2023-12-18 22:02:20 +01:00
parent 622135c570
commit 1404ac3285

View file

@ -67,6 +67,12 @@ if [ "$1" == "prestart" ]; then
echo "# make sure entry(${bitcoinlog_entry}) has the correct value(${bitcoinlog_path})" echo "# make sure entry(${bitcoinlog_entry}) has the correct value(${bitcoinlog_path})"
sed -i "s|^${bitcoinlog_entry}=.*|${bitcoinlog_entry}=${bitcoinlog_path}|g" /mnt/hdd/bitcoin/bitcoin.conf sed -i "s|^${bitcoinlog_entry}=.*|${bitcoinlog_entry}=${bitcoinlog_path}|g" /mnt/hdd/bitcoin/bitcoin.conf
# make sure bitcoin debug file exists
echo "# make sure bitcoin debug file exists"
touch ${bitcoinlog_path}
chown bitcoin:bitcoin ${bitcoinlog_path}
chmod 600 ${bitcoinlog_path}
##### STATISTICS ##### ##### STATISTICS #####
# count startings # count startings