Skip to content

Commit

Permalink
fix download urls
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Jun 15, 2024
1 parent 9dbbd47 commit 95246b5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ If you dont like the imaging method above, you can also use the official Alpine

## 1. Boot Alpine installer

Get and boot a recent Alpine release: https://alpinelinux.org/downloads/
Get and boot a matching Alpine version: https://alpinelinux.org/downloads/

Note: Should be the extended edition, since that one has ZFS support.

Expand Down
12 changes: 10 additions & 2 deletions install/installimage.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
#!/bin/sh
#!/bin/bash

set -e

DISK=$1
RELEASE=${2:-latest}

URL=https://github.com/psy0rz/alpinebox/releases/$RELEASE/download/alpine.img.gz
if [ "$RELEASE" == "latest" ]; then
echo "ALPINEBOX: Getting latest stable version..."
URL="https://github.com/psy0rz/alpinebox/releases/latest/download/alpine.img.gz"
else
echo "ALPINEBOX: Getting release $RELEASE..."
URL="https://github.com/psy0rz/alpinebox/releases/download/$RELEASE/alpine.img.gz"
fi


if ! [ "$DISK" ]; then
Expand Down

0 comments on commit 95246b5

Please sign in to comment.