alby-hub/scripts/pi-aarch64/update.sh
Michael Bumann 49449f0dfc
chore: better handle ports on Pi and allow albyhub to run on port 80 (#584)
* chore: better handle ports on Pi and allow albyhub to run on port 80

* chore: install script: create data dir before running docker compose

* chore: install script for pi-aarch64

* chore: pi-zero move lib folder on update

* chore: replace (not append) files in install scripts

* chore: install text
2024-09-06 10:32:26 +02:00

24 lines
497 B
Bash

#!/bin/bash
echo "🔃 Updating Alby Hub..."
sudo systemctl stop albyhub
# Download new artifacts
cd /opt/albyhub
rm -rf albyhub-backup
mkdir albyhub-backup
mv bin albyhub-backup
mv lib albyhub-backup
cp -r data albyhub-backup
wget https://getalby.com/install/hub/server-linux-aarch64.tar.bz2
# Extract archives
tar -xvf server-linux-aarch64.tar.bz2
# Cleanup
rm server-linux-aarch64.tar.bz2
sudo systemctl start albyhub
echo "✅ Update finished! Please login again to start your wallet."