It does sound strange. What version of Albyhub currently?

Is it on x86 or aarch64(ARM) machine?

If the latter, in case you're running a Debian/Ubuntu on a Pi or similar ARM, and you can stomach some shell scripting, find below a script that automatically updates to the latest from github. Depends on gnupg and jq (json parser). Every time you run the update, you must log in to unlock the wallet.

However, Settings > Auto Unlock is now a feature. Best only use it on baremetal, which is your case. The password is stored in the local machine WITHOUT encryption, so anybody with access to that machine could potentially steal all your funds.

### SCRIPT STARTS HERE ###

#!/bin/sh

# Dependencies: jq gnupg

INIT_DIR="$(pwd)"

VERSION=$(curl -s "https://api.github.com/repos/getAlby/hub/releases/latest" | jq '.tag_name' | tr -d '"')

ALBYHUB_FILE="albyhub-Server-Linux-aarch64.tar.bz2"

# clean up function

cleanUp() {

rm "$ALBYHUB_FILE" manifest*

cd $INIT_DIR

}

echo "\n --> Updating Alby Hub...\n"

# stop running process

sudo systemctl stop albyhub

# create backup of current instance

cd /opt/albyhub

test -d albyhub-backup && rm -rf albyhub-backup

mkdir albyhub-backup

mv bin albyhub-backup

mv lib albyhub-backup

cp -r data albyhub-backup

# Download new artifacts

wget --show-progress -q "https://github.com/getAlby/hub/releases/download/$VERSION/$ALBYHUB_FILE"

wget --show-progress -q "https://github.com/getAlby/hub/releases/download/$VERSION/manifest.txt"

wget --show-progress -q "https://github.com/getAlby/hub/releases/download/$VERSION/manifest.txt.asc"

# import gpg keys

echo "\n --> import dev keys...\n"

curl https://raw.githubusercontent.com/getalby/hub/master/scripts/keys/rolznz.asc | gpg --import

# validating download

echo "\n --> validating release...\n"

gpg --verify manifest.txt.asc manifest.txt && VALIDATION=0

echo ""

HASHED=$(shasum -a 256 "$ALBYHUB_FILE" | cut -f 1 -d ' ')

HASH_SIG="$(cat manifest.txt | grep $ALBYHUB_FILE | cut -f 1 -d ' ')"

if [ "$HASHED" = "$HASH_SIG" -a $VALIDATION = 0 ]; then

echo "\n --> release verified...\n"

# Extract archives

tar -xvf "$ALBYHUB_FILE"

#Clean up function

cleanUp

# restart instance

sudo systemctl start albyhub && echo "\n --> AlbyHub server RESTARTED"

echo "\n --> ✅ Update COMPLETED ✅\n\n --> Login to restart wallet <--\n"

else

echo "\n --> hash failed\n"

cleanUp # Clean Up Function

return 1

fi

Reply to this note

Please Login to reply.

Discussion

No replies yet.