make copy of log before reboot

This commit is contained in:
rootzoll
2021-08-26 23:56:07 +02:00
parent df8a3d426f
commit 1c06b405ee
2 changed files with 2 additions and 1 deletions

View File

@@ -648,6 +648,7 @@ if [ ${isMounted} -eq 0 ]; then
# if touchscreen is on (on recover/update) --> reboot now to activate touchscreen
source ${configFile}
if [ "${touchscreen}" == "1" ] || [ "${touchscreen}" == "on" ]; then
sudo cp ${/home/admin/raspiblitz.log} ${/home/admin/raspiblitz.log}.setup
/home/admin/config.scripts/blitz.shutdown.sh reboot
fi

View File

@@ -41,7 +41,7 @@ activateBitcoinOverTOR()
# remove empty lines
sudo sed -i '/^ *$/d' /home/bitcoin/.${network}/${network}.conf
sudo chmod 444 /home/bitcoin/.${network}/${network}.conf
sudo chmod 664 /home/bitcoin/.${network}/${network}.conf
# copy new bitcoin.conf to admin user for cli access
sudo cp /home/bitcoin/.${network}/${network}.conf /home/admin/.${network}/${network}.conf