Minor fixes
This commit is contained in:
parent
3233325376
commit
1f6ac0c463
|
@ -47,9 +47,12 @@ def get_product_key():
|
|||
product_key = "product_key_error"
|
||||
return product_key
|
||||
def get_drive_size():
|
||||
size = "-1"
|
||||
size = subprocess.check_output("df /mnt/hdd | grep /dev | awk '{print $2}'", shell=True).strip()
|
||||
size = int(size) / 1000 / 1000
|
||||
size = -1
|
||||
try:
|
||||
size = subprocess.check_output("df /mnt/hdd | grep /dev | awk '{print $2}'", shell=True).strip()
|
||||
size = int(size) / 1000 / 1000
|
||||
except Exception as e:
|
||||
size = -2
|
||||
return size
|
||||
def get_quicksync_enabled():
|
||||
enabled = 1
|
||||
|
|
|
@ -683,6 +683,8 @@ if [ -f $CKBUNKER_VERSION_FILE ]; then
|
|||
fi
|
||||
if [ "$CURRENT" != "$CKBUNKER_VERSION" ]; then
|
||||
cd /opt/mynode
|
||||
rm -rf ckbunker
|
||||
|
||||
sudo -u bitcoin wget $CKBUNKER_UPGRADE_URL -O ckbunker.tar.gz
|
||||
sudo -u bitcoin tar -xvf ckbunker.tar.gz
|
||||
sudo -u bitcoin rm ckbunker.tar.gz
|
||||
|
@ -711,6 +713,7 @@ fi
|
|||
if [ "$CURRENT" != "$SPHINXRELAY_VERSION" ]; then
|
||||
cd /opt/mynode
|
||||
rm -rf sphinxrelay
|
||||
|
||||
sudo -u bitcoin wget $SPHINXRELAY_UPGRADE_URL -O sphinx-relay.tar.gz
|
||||
sudo -u bitcoin tar -xvf sphinx-relay.tar.gz
|
||||
sudo -u bitcoin rm sphinx-relay.tar.gz
|
||||
|
|
|
@ -35,6 +35,8 @@ def caravan_page():
|
|||
apps.append({"name":"LNbits", "short_name": "lnbits"})
|
||||
apps.append({"name":"Caravan", "short_name": "caravan"})
|
||||
apps.append({"name":"Specter", "short_name": "specter"})
|
||||
apps.append({"name":"CKBunker", "short_name": "ckbunker"})
|
||||
apps.append({"name":"Sphinx Relay", "short_name": "sphinxrelay"})
|
||||
|
||||
for app in apps:
|
||||
app["current_version"] = get_app_current_version(app["short_name"])
|
||||
|
|
Loading…
Reference in New Issue
Block a user