mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
parent
ed675f628d
commit
3c71712653
1 changed files with 9 additions and 2 deletions
|
@ -18,6 +18,14 @@ elif [ -d /boot ]; then
|
||||||
fi
|
fi
|
||||||
echo "# raspi_bootdir(${raspi_bootdir})"
|
echo "# raspi_bootdir(${raspi_bootdir})"
|
||||||
|
|
||||||
|
# determine if this is a release candidate
|
||||||
|
source <(/home/admin/_cache.sh get codeVersion)
|
||||||
|
isReleaseCandidate=0
|
||||||
|
if [[ "$codeVersion" == *"rc"* ]]; then
|
||||||
|
isReleaseCandidate=1
|
||||||
|
fi
|
||||||
|
echo "# isReleaseCandidate(${isReleaseCandidate})"
|
||||||
|
|
||||||
# make sure LCD is on (default for fatpack)
|
# make sure LCD is on (default for fatpack)
|
||||||
/home/admin/config.scripts/blitz.display.sh set-display lcd
|
/home/admin/config.scripts/blitz.display.sh set-display lcd
|
||||||
|
|
||||||
|
@ -93,8 +101,7 @@ sudo -u admin curl -H "Accept: application/json; indent=4" https://bitnodes.io/a
|
||||||
sudo -u admin curl https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/seeds/nodes_main.txt -o /home/admin/fallback.bitcoin.nodes
|
sudo -u admin curl https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/seeds/nodes_main.txt -o /home/admin/fallback.bitcoin.nodes
|
||||||
|
|
||||||
# use dev branch when its an Release Candidate
|
# use dev branch when its an Release Candidate
|
||||||
source <(/home/admin/_cache.sh get codeVersion)
|
if [ "${isReleaseCandidate}" == "1" ]; then
|
||||||
if [[ "$codeVersion" == *"rc"* ]]; then
|
|
||||||
echo "# RELEASE CANDIDATE: using development branches for WebUI & API"
|
echo "# RELEASE CANDIDATE: using development branches for WebUI & API"
|
||||||
echo "* Adding Raspiblitz API ..."
|
echo "* Adding Raspiblitz API ..."
|
||||||
sudo /home/admin/config.scripts/blitz.web.api.sh on "${defaultAPIuser}" "${defaultAPIrepo}" "dev" || exit 1
|
sudo /home/admin/config.scripts/blitz.web.api.sh on "${defaultAPIuser}" "${defaultAPIrepo}" "dev" || exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue