mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 09:50:19 +01:00
parent
83811d0900
commit
026e1f38be
@ -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}
|
||||
|
@ -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 ***"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user