Add update script for Proxmox LXC containers

Adds scripts/proxmox/update-linkvault.sh to pull the latest git
changes, refresh dependencies, and restart the systemd service on an
existing container. Documents usage in the README.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Erik Thiele
2026-07-19 20:33:14 +02:00
parent 468f9872c1
commit 0d2e33f899
2 changed files with 66 additions and 0 deletions

View File

@@ -153,6 +153,26 @@ pct exec <CTID> -- systemctl status linkvault # Status prüfen
pct exec <CTID> -- journalctl -u linkvault -f # Logs verfolgen
```
### Updaten
Wenn sich im Git-Repo etwas geändert hat, den Container mit
`scripts/proxmox/update-linkvault.sh` auf den neuesten Stand bringen. Das
Script zieht per `git pull`, aktualisiert die Python-Abhängigkeiten und
startet den systemd-Service neu. Auf dem **Proxmox-Host** ausführen:
```bash
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.)
Alternativ, falls das Repo bereits lokal ausgecheckt ist:
```bash
CTID=113 bash scripts/proxmox/update-linkvault.sh
```
## Hinweise für den Produktivbetrieb
- Einen zufälligen `SECRET_KEY` in `.env` setzen.