Fixing Pyblock & Recovery #1648 (#1682)

This commit is contained in:
Christian Rotzoll 2020-10-19 01:54:28 +02:00 committed by GitHub
parent 83811d0900
commit 026e1f38be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 1 deletions

View File

@ -26,6 +26,12 @@ if [ ${configExists} -eq 0 ]; then
exit 1
fi
# check that default parameter exist in config
parameterExists=$(cat /mnt/hdd/raspiblitz.conf | grep -c "lndExtraParameter=")
if [ ${parameterExists} -eq 0 ]; then
echo "lndExtraParameter=''" >> ${configFile}
fi
# check if file system was expanded to full capacity and sd card is bigger than 8GB
# see: https://github.com/rootzoll/raspiblitz/issues/936
echo "CHECK IF SD CARD NEEDS EXPANSION" >> ${logFile}
@ -491,6 +497,15 @@ else
echo "Provisioning kindle-display - keep default" >> ${logFile}
fi
# pyblock
if [ "${pyblock}" = "on" ]; then
echo "Provisioning pyblock - run config script" >> ${logFile}
sudo sed -i "s/^message=.*/message='Setup pyblock'/g" ${infoFile}
sudo -u admin /home/admin/config.scripts/bonus.pyblock.sh on >> ${logFile} 2>&1
else
echo "Provisioning pyblock - keep default" >> ${logFile}
fi
# stacking-sats-kraken
if [ "${stackingSatsKraken}" = "on" ]; then
echo "Provisioning Stacking Sats Kraken - run config script" >> ${logFile}

View File

@ -274,7 +274,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
prepareTorSources
echo "*** Updating System ***"
sudo apt-get update -y
sudo apt update -y
echo ""
echo "*** Install Tor & NYX ***"

View File

@ -174,6 +174,12 @@ if [ "$1" == "basic-setup" ]; then
fi
echo "rpcpasscorrect=${rpcpasscorrect}"
# check basic LND logs
torConnectionProblem=$(sudo journalctl -u lnd -b --no-pager -n14 | grep "lnd\[" | grep -c "dial tcp 127.0.0.1:9050: connect: connection refused")
if [ ${torConnectionProblem} -gt 0 ]; then
echo "err='Tor tcp connection refused'"
fi
else
echo "# FAIL: parameter not known - run with -h for help"
exit 1