diff --git a/home.admin/config.scripts/bitcoin.check.sh b/home.admin/config.scripts/bitcoin.check.sh index c9e5ed6e0..943cc9fd9 100755 --- a/home.admin/config.scripts/bitcoin.check.sh +++ b/home.admin/config.scripts/bitcoin.check.sh @@ -67,6 +67,12 @@ if [ "$1" == "prestart" ]; then 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 + # 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 ##### # count startings