SHA256
allow installation of a specific tag/branch by exporting PBC_GIT_TAG
This commit is contained in:
@@ -23,6 +23,17 @@ curl -fsSL https://git.ccc-rheintal.ch/spacefreak/pbc/raw/branch/master/install.
|
||||
This installs the newest tagged version to `/usr/local/bin/pbc`, installs the
|
||||
dependencies, and puts an example config at `/etc/pbc/config.example`.
|
||||
|
||||
### Installing a specific version
|
||||
|
||||
Set `PBC_GIT_TAG` to install that tag instead of the newest one:
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.ccc-rheintal.ch/spacefreak/pbc/raw/branch/master/install.sh | sudo PBC_GIT_TAG=v1.0.0 bash
|
||||
```
|
||||
|
||||
`sudo` drops the environment, so set the variable on the `sudo` command itself (or use
|
||||
`sudo -E`), not before `curl`. Any Git ref works, e.g. a branch name for testing.
|
||||
|
||||
### Updating
|
||||
|
||||
Run the same command again to update `pbc` itself:
|
||||
@@ -32,7 +43,7 @@ curl -fsSL https://git.ccc-rheintal.ch/spacefreak/pbc/raw/branch/master/install.
|
||||
```
|
||||
|
||||
It fetches the newest tag and overwrites `/usr/local/bin/pbc`. Your `/etc/pbc/config` is
|
||||
left untouched.
|
||||
left untouched. `PBC_GIT_TAG` works here too, to pin or roll back to a given version.
|
||||
|
||||
To update only the `proxmox-backup-client` binary:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user