rm and ln app-storage/debug.log

This commit is contained in:
rootzoll
2025-10-23 00:31:51 +02:00
parent 2fc5782fe2
commit 0c2fc593fe

View File

@@ -63,6 +63,10 @@ if [ "$1" == "prestart" ]; then
echo "${bitcoinlog_entry}=${bitcoinlog_path}" >> /mnt/hdd/app-data/bitcoin/bitcoin.conf
fi
# delete any debuglogfile in app-storage and link to new location in app-data
rm -f /mnt/hdd/app-storage/bitcoin/debug.log
ln -s /mnt/hdd/app-data/bitcoin/debug.log /mnt/hdd/app-storage/bitcoin/debug.log
# make sure entry has the correct value
echo "# make sure entry(${bitcoinlog_entry}) has the correct value(${bitcoinlog_path})"
sed -i "s|^${bitcoinlog_entry}=.*|${bitcoinlog_entry}=${bitcoinlog_path}|g" /mnt/hdd/app-data/bitcoin/bitcoin.conf