Add balance of satoshis v8.0.14

This commit is contained in:
Taylor Helsper 2021-05-17 20:41:26 -05:00
parent 601dbea4a8
commit 30acdbea1f
8 changed files with 40 additions and 6 deletions

View File

@ -906,6 +906,20 @@ if should_install_app "warden" ; then
fi
# Upgrade Balance of Satoshis
if should_install_app "bos" ; then
CURRENT=""
if [ -f $BOS_VERSION_FILE ]; then
CURRENT=$(cat $BOS_VERSION_FILE)
fi
if [ "$CURRENT" != "$BOS_VERSION" ]; then
npm install -g balanceofsatoshis@$BOS_VERSION
echo $BOS_VERSION > $BOS_VERSION_FILE
fi
fi

View File

@ -28,7 +28,9 @@ else
fi
# Custom re-install steps
if [ "$APP" = "netdata" ]; then
if [ "$APP" = "bos" ]; then
npm uninstall -g balanceofsatoshis
elif [ "$APP" = "netdata" ]; then
systemctl stop netdata
docker rmi netdata/netdata || true
elif [ "$APP" = "btcpayserver" ]; then

View File

@ -791,6 +791,7 @@ echo $SPECTER_VERSION > $SPECTER_LATEST_VERSION_FILE
echo $THUNDERHUB_VERSION > $THUNDERHUB_LATEST_VERSION_FILE
echo $LNDCONNECT_VERSION > $LNDCONNECT_LATEST_VERSION_FILE
echo $CKBUNKER_VERSION > $CKBUNKER_LATEST_VERSION_FILE
echo $BOS_VERSION > $BOS_LATEST_VERSION_FILE
echo $SPHINXRELAY_VERSION > $SPHINXRELAY_LATEST_VERSION_FILE
echo $WEBSSH2_VERSION > $WEBSSH2_LATEST_VERSION_FILE
echo $PYBLOCK_VERSION > $PYBLOCK_LATEST_VERSION_FILE

View File

@ -25,12 +25,14 @@ sync
rm -rf /opt/mynode/${APP}
# Custom uninstall steps
if [ "$APP" = "btcrpcexplorer" ]; then
if [ "$APP" = "bos" ]; then
npm uninstall -g balanceofsatoshis
elif [ "$APP" = "btcrpcexplorer" ]; then
rm -rf /opt/mynode/btc-rpc-explorer
elif [ "$APP" = "lndhub" ]; then
rm -rf /opt/mynode/LndHub
elif [ "$APP" = "rtl" ]; then
m -rf /opt/mynode/RTL
rm -rf /opt/mynode/RTL
else
echo "No custom uninstall steps"
fi

View File

@ -101,6 +101,10 @@ CKBUNKER_VERSION="v0.9"
CKBUNKER_VERSION_FILE=/home/bitcoin/.mynode/ckbunker_version
CKBUNKER_LATEST_VERSION_FILE=/home/bitcoin/.mynode/ckbunker_version_latest
BOS_VERSION="8.0.14"
BOS_VERSION_FILE=/home/bitcoin/.mynode/bos_version
BOS_LATEST_VERSION_FILE=/home/bitcoin/.mynode/bos_version_latest
SPHINXRELAY_VERSION="v2.0.13"
SPHINXRELAY_VERSION_FILE=/home/bitcoin/.mynode/sphinxrelay_version
SPHINXRELAY_LATEST_VERSION_FILE=/home/bitcoin/.mynode/sphinxrelay_version_latest

View File

@ -55,8 +55,8 @@ def uninstall_app(app):
os.system("sync")
def is_installed(short_name):
filename1 = "/home/bitcoin/.mynode/"+short_name+"_install"
filename2 = "/mnt/hdd/mynode/settings/"+short_name+"_install"
filename1 = "/home/bitcoin/.mynode/install_"+short_name
filename2 = "/mnt/hdd/mynode/settings/install_"+short_name
if os.path.isfile(filename1):
return True
elif os.path.isfile(filename2):
@ -131,7 +131,7 @@ def create_application(name="NAME",
app["current_version"] = get_app_current_version(short_name)
app["latest_version"] = get_app_latest_version(short_name)
app["is_beta"] = is_beta
app["is_installed"] = is_installed(app["current_version"])
app["is_installed"] = is_installed(short_name)
app["can_reinstall"] = can_reinstall
app["can_uninstall"] = can_uninstall
app["requires_lightning"] = requires_lightning
@ -407,6 +407,16 @@ def initialize_applications():
# homepage_order=42,
# is_premium=False
# ))
apps.append(create_application(
name="Balance of Satoshis",
short_name="bos",
requires_lightning=True,
app_tile_default_status_text="Lightning Tool",
can_uninstall=True,
can_enable_disable=False,
show_on_homepage=False,
is_premium=False
))
apps.append(create_application(
name="Web SSH",
short_name="webssh2",

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -18,6 +18,7 @@ apps = [{"name": "bitcoin/bitcoin", "current_version_var
{"name": "unchained-capital/caravan", "current_version_variable": "CARAVAN_VERSION"},
{"name": "cryptoadvance/specter-desktop", "current_version_variable": "SPECTER_VERSION"},
{"name": "Coldcard/ckbunker", "current_version_variable": "CKBUNKER_VERSION"},
{"name": "alexbosworth/balanceofsatoshis", "current_version_variable": "BOS_VERSION"},
{"name": "lnbits/lnbits", "current_version": "6cf4881"},
{"name": "apotdevin/thunderhub", "current_version_variable": "THUNDERHUB_VERSION"},
{"name": "stakwork/sphinx-relay", "current_version_variable": "SPHINXRELAY_VERSION"},