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:
20
README.md
20
README.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user