Simplify install/update commands now that the repo is public
Drop the Authorization header/GIT_TOKEN requirement from the default examples since the repo is no longer private; keep it documented as a fallback for if the repo is made private again. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
33
README.md
33
README.md
@@ -69,23 +69,22 @@ Debian-12-Container an und richtet LinkVault darin als systemd-Service ein.
|
|||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
Das Repo ist **privat** – für den Download des Scripts und für den `git clone`
|
|
||||||
innerhalb des Containers wird ein Gitea Access Token benötigt:
|
|
||||||
|
|
||||||
1. In Gitea: **Einstellungen → Anwendungen → Neuen Token erzeugen** (Scope
|
|
||||||
`read:repository` genügt).
|
|
||||||
2. Token als Umgebungsvariable `GIT_TOKEN` bereitstellen.
|
|
||||||
|
|
||||||
Auf dem **Proxmox-Host** (als root) ausführen:
|
Auf dem **Proxmox-Host** (als root) ausführen:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export GIT_TOKEN=<dein-token>
|
bash <(curl -fsSL https://gitea.teamthiele.de/ethiele/linkvault/raw/branch/main/scripts/proxmox/install-linkvault.sh)
|
||||||
bash <(curl -fsSL -H "Authorization: token ${GIT_TOKEN}" \
|
|
||||||
https://gitea.teamthiele.de/ethiele/linkvault/raw/branch/main/scripts/proxmox/install-linkvault.sh)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
`GIT_TOKEN` wird automatisch an das Script weitergereicht und auch beim
|
> Falls das Repo (wieder) auf privat gestellt wird, zusätzlich ein Gitea
|
||||||
`git clone` innerhalb des LXC-Containers verwendet.
|
> Access Token verwenden (**Einstellungen → Anwendungen → Neuen Token
|
||||||
|
> erzeugen**, Scope `read:repository` genügt):
|
||||||
|
> ```bash
|
||||||
|
> export GIT_TOKEN=<dein-token>
|
||||||
|
> bash <(curl -fsSL -H "Authorization: token ${GIT_TOKEN}" \
|
||||||
|
> https://gitea.teamthiele.de/ethiele/linkvault/raw/branch/main/scripts/proxmox/install-linkvault.sh)
|
||||||
|
> ```
|
||||||
|
> `GIT_TOKEN` wird automatisch an das Script weitergereicht und auch beim
|
||||||
|
> `git clone` innerhalb des LXC-Containers verwendet.
|
||||||
|
|
||||||
Alternativ, falls das Repo bereits lokal ausgecheckt ist:
|
Alternativ, falls das Repo bereits lokal ausgecheckt ist:
|
||||||
|
|
||||||
@@ -125,15 +124,13 @@ Alle Einstellungen lassen sich per Umgebungsvariable vor dem Aufruf setzen
|
|||||||
| `CT_PASSWORD` | root-Passwort des Containers | zufällig generiert |
|
| `CT_PASSWORD` | root-Passwort des Containers | zufällig generiert |
|
||||||
| `REPO_URL` | Git-Repo, das geklont wird | `.../ethiele/linkvault.git` |
|
| `REPO_URL` | Git-Repo, das geklont wird | `.../ethiele/linkvault.git` |
|
||||||
| `APP_PORT` | Port, auf dem uvicorn lauscht | `8000` |
|
| `APP_PORT` | Port, auf dem uvicorn lauscht | `8000` |
|
||||||
| `GIT_TOKEN` | Gitea Access Token (privates Repo) | – |
|
| `GIT_TOKEN` | Gitea Access Token (nur bei privatem Repo) | – |
|
||||||
|
|
||||||
Beispiel mit statischer IP und fester Container-ID:
|
Beispiel mit statischer IP und fester Container-ID:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export GIT_TOKEN=<dein-token>
|
|
||||||
CTID=150 CT_HOSTNAME=linkvault CT_IP=192.168.1.50/24 CT_GW=192.168.1.1 \
|
CTID=150 CT_HOSTNAME=linkvault CT_IP=192.168.1.50/24 CT_GW=192.168.1.1 \
|
||||||
bash <(curl -fsSL -H "Authorization: token ${GIT_TOKEN}" \
|
bash <(curl -fsSL https://gitea.teamthiele.de/ethiele/linkvault/raw/branch/main/scripts/proxmox/install-linkvault.sh)
|
||||||
https://gitea.teamthiele.de/ethiele/linkvault/raw/branch/main/scripts/proxmox/install-linkvault.sh)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Nach der Installation
|
### Nach der Installation
|
||||||
@@ -161,9 +158,7 @@ Script zieht per `git pull`, aktualisiert die Python-Abhängigkeiten und
|
|||||||
startet den systemd-Service neu. Auf dem **Proxmox-Host** ausführen:
|
startet den systemd-Service neu. Auf dem **Proxmox-Host** ausführen:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export GIT_TOKEN=<dein-token>
|
CTID=113 bash <(curl -fsSL https://gitea.teamthiele.de/ethiele/linkvault/raw/branch/main/scripts/proxmox/update-linkvault.sh)
|
||||||
CTID=113 bash <(curl -fsSL -H "Authorization: token ${GIT_TOKEN}" \
|
|
||||||
https://gitea.teamthiele.de/ethiele/linkvault/raw/branch/main/scripts/proxmox/update-linkvault.sh)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
(`GIT_TOKEN` nur nötig, falls das Repo privat ist – siehe oben.)
|
(`GIT_TOKEN` nur nötig, falls das Repo privat ist – siehe oben.)
|
||||||
|
|||||||
Reference in New Issue
Block a user