add option to automtically download and install a specific version

Signed-off-by: Wolfgang <github@linux-dude.de>
This commit is contained in:
Wolfgang
2025-08-01 15:25:03 +00:00
parent 4ae0c091e0
commit 43ef5044c0
2 changed files with 13 additions and 13 deletions

View File

@@ -13,18 +13,14 @@ At least 4 GB are required for compiling. On devices with low memory, SWAP must
You can find unoffical debian packages for **Bookworm** or **Trixie** that are created with the build.sh script and github actions at https://github.com/wofferl/proxmox-backup-arm64/releases.
With the script you can also download all files of the latest **Debian/Bookworm** release at once
```
./build.sh download
```
or download and install automatically
```
./build.sh install
```
or of a specific version
```
./build.sh download=4.0.0-1
```
**Download and install**
```./build.sh install``` or a specific version ```./build.sh install=4.0.8-1```
**Download only**
```./build.sh download``` or a specific verision ```./build.sh download=4.0.8-1```
## Build manually
### Install build essentials and dependencies

View File

@@ -209,8 +209,12 @@ while [ "$#" -ge 1 ]; do
export DEB_HOST_RUST_TYPE=aarch64-unknown-linux-gnu
;;
install)
download_release
install*)
if [[ "$1" =~ install=[0-9.-]+ ]]; then
download_release tags/${1/*=/}
else
download_release
fi
install_server
exit 0
;;