Skip to content

Commit 857845c

Browse files
committed
Make command to download last aleph-vm a bit less scary
1 parent c4bf31b commit 857845c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

docs/nodes/compute/installation/debian-12.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ The procedure is similar for updates.
4040

4141
```shell
4242
# Download the latest release
43-
curl -s https://api.github.com/repos/aleph-im/aleph-vm/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | sed '1p;d' | xargs wget -P /opt -
43+
release=$(curl -s https://api.github.com/repos/aleph-im/aleph-vm/releases/latest | awk -F'"' '/"tag_name":/ {print $4}')
44+
sudo wget -P /opt/ https://github.com/aleph-im/aleph-vm/releases/download/${release}/aleph-vm.debian-12.deb
4445
# Install it
4546
apt install /opt/aleph-vm.debian-12.deb
4647
```

docs/nodes/compute/installation/ubuntu-22.04.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ The procedure is similar for updates.
4040

4141
```shell
4242
# Download the latest release
43-
curl -s https://api.github.com/repos/aleph-im/aleph-vm/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | sed '2p;d' | xargs sudo wget -P /opt -
43+
release=$(curl -s https://api.github.com/repos/aleph-im/aleph-vm/releases/latest | awk -F'"' '/"tag_name":/ {print $4}')
44+
sudo wget -P /opt/ https://github.com/aleph-im/aleph-vm/releases/download/${release}/aleph-vm.ubuntu-22.04.deb
4445
# Install it
4546
sudo apt install /opt/aleph-vm.ubuntu-22.04.deb
4647
```

docs/nodes/compute/installation/ubuntu-24.04.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ The procedure is similar for updates.
4040

4141
```shell
4242
# Download the latest release
43-
curl -s https://api.github.com/repos/aleph-im/aleph-vm/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | sed '3p;d' | xargs sudo wget -P /opt -
43+
release=$(curl -s https://api.github.com/repos/aleph-im/aleph-vm/releases/latest | awk -F'"' '/"tag_name":/ {print $4}')
44+
sudo wget -P /opt/ https://github.com/aleph-im/aleph-vm/releases/download/${release}/aleph-vm.ubuntu-24.04.deb
4445
# Install it
4546
sudo apt install /opt/aleph-vm.ubuntu-24.04.deb
4647
```

0 commit comments

Comments
 (0)