mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 18:00:22 +01:00
parent
329e4a83e9
commit
64e5f65eab
@ -744,6 +744,30 @@ if [ ${isMounted} -eq 0 ]; then
|
|||||||
echo "# setting PASSWORD A" >> ${logFile}
|
echo "# setting PASSWORD A" >> ${logFile}
|
||||||
sudo /home/admin/config.scripts/blitz.passwords.sh set a "${passwordA}" >> ${logFile}
|
sudo /home/admin/config.scripts/blitz.passwords.sh set a "${passwordA}" >> ${logFile}
|
||||||
|
|
||||||
|
# Bitcoin Mainnet
|
||||||
|
if [ "${mainnet}" == "on" ] || [ "${chain}" == "main" ]; then
|
||||||
|
echo "Provisioning ${network} Mainnet - run config script" >> ${logFile}
|
||||||
|
/home/admin/config.scripts/bitcoin.install.sh on mainnet >> ${logFile} 2>&1
|
||||||
|
else
|
||||||
|
echo "Provisioning ${network} Mainnet - not active" >> ${logFile}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Bitcoin Testnet
|
||||||
|
if [ "${testnet}" == "on" ]; then
|
||||||
|
echo "Provisioning ${network} Testnet - run config script" >> ${logFile}
|
||||||
|
/home/admin/config.scripts/bitcoin.install.sh on testnet >> ${logFile} 2>&1
|
||||||
|
else
|
||||||
|
echo "Provisioning ${network} Testnet - not active" >> ${logFile}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Bitcoin Signet
|
||||||
|
if [ "${signet}" == "on" ]; then
|
||||||
|
echo "Provisioning ${network} Signet - run config script" >> ${logFile}
|
||||||
|
/home/admin/config.scripts/bitcoin.install.sh on signet >> ${logFile} 2>&1
|
||||||
|
else
|
||||||
|
echo "Provisioning ${network} Signet - not active" >> ${logFile}
|
||||||
|
fi
|
||||||
|
|
||||||
# if setup - run provision setup first
|
# if setup - run provision setup first
|
||||||
if [ "${setupPhase}" == "setup" ]; then
|
if [ "${setupPhase}" == "setup" ]; then
|
||||||
echo "Calling _provision.setup.sh for basic setup tasks .." >> $logFile
|
echo "Calling _provision.setup.sh for basic setup tasks .." >> $logFile
|
||||||
|
@ -117,7 +117,7 @@ echo ""
|
|||||||
echo "*** Start ${network} (SETUP) ***" >> ${logFile}
|
echo "*** Start ${network} (SETUP) ***" >> ${logFile}
|
||||||
/home/admin/_cache.sh set message "Blockchain Testrun"
|
/home/admin/_cache.sh set message "Blockchain Testrun"
|
||||||
echo "- This can take a while .." >> ${logFile}
|
echo "- This can take a while .." >> ${logFile}
|
||||||
cp /home/admin/assets/${network}d.service /etc/systemd/system/${network}d.service
|
systemctl daemon-reload >> ${logFile}
|
||||||
systemctl enable ${network}d.service
|
systemctl enable ${network}d.service
|
||||||
systemctl start ${network}d.service
|
systemctl start ${network}d.service
|
||||||
|
|
||||||
|
@ -167,7 +167,6 @@ echo "*** Start ${network} (UPDATE) ***" >> ${logFile}
|
|||||||
/home/admin/_cache.sh set message "Blockchain Testrun"
|
/home/admin/_cache.sh set message "Blockchain Testrun"
|
||||||
echo "- This can take a while .." >> ${logFile}
|
echo "- This can take a while .." >> ${logFile}
|
||||||
chown -R bitcoin:bitcoin /mnt/hdd/${network} >>${logFile} 2>&1
|
chown -R bitcoin:bitcoin /mnt/hdd/${network} >>${logFile} 2>&1
|
||||||
cp /home/admin/assets/${network}d.service /etc/systemd/system/${network}d.service
|
|
||||||
systemctl daemon-reload >> ${logFile}
|
systemctl daemon-reload >> ${logFile}
|
||||||
systemctl enable ${network}d.service >> ${logFile}
|
systemctl enable ${network}d.service >> ${logFile}
|
||||||
systemctl start ${network}d.service >> ${logFile}
|
systemctl start ${network}d.service >> ${logFile}
|
||||||
|
@ -265,34 +265,6 @@ else
|
|||||||
echo "Provisioning CL interims update - keep default" >> ${logFile}
|
echo "Provisioning CL interims update - keep default" >> ${logFile}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Bitcoin Mainnet
|
|
||||||
if [ "${mainnet}" == "on" ] || [ "${chain}" == "main" ]; then
|
|
||||||
echo "Provisioning ${network} Mainnet - run config script" >> ${logFile}
|
|
||||||
/home/admin/config.scripts/bitcoin.install.sh on mainnet >> ${logFile} 2>&1
|
|
||||||
systemctl start bitcoind >> ${logFile} 2>&1
|
|
||||||
else
|
|
||||||
echo "Provisioning ${network} Mainnet - not active" >> ${logFile}
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Bitcoin Testnet
|
|
||||||
if [ "${testnet}" == "on" ]; then
|
|
||||||
echo "Provisioning ${network} Testnet - run config script" >> ${logFile}
|
|
||||||
/home/admin/config.scripts/bitcoin.install.sh on testnet >> ${logFile} 2>&1
|
|
||||||
systemctl start tbitcoind >> ${logFile} 2>&1
|
|
||||||
else
|
|
||||||
echo "Provisioning ${network} Testnet - not active" >> ${logFile}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Bitcoin Signet
|
|
||||||
if [ "${signet}" == "on" ]; then
|
|
||||||
echo "Provisioning ${network} Signet - run config script" >> ${logFile}
|
|
||||||
/home/admin/config.scripts/bitcoin.install.sh on signet >> ${logFile} 2>&1
|
|
||||||
systemctl start sbitcoind >> ${logFile} 2>&1
|
|
||||||
else
|
|
||||||
echo "Provisioning ${network} Signet - not active" >> ${logFile}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# LND binary install
|
# LND binary install
|
||||||
if [ "${lightning}" == "lnd" ] || [ "${lnd}" == "on" ] || [ "${tlnd}" == "on" ] || [ "${slnd}" == "on" ]; then
|
if [ "${lightning}" == "lnd" ] || [ "${lnd}" == "on" ] || [ "${tlnd}" == "on" ] || [ "${slnd}" == "on" ]; then
|
||||||
# if already installed by fatpack will skip
|
# if already installed by fatpack will skip
|
||||||
|
Loading…
Reference in New Issue
Block a user