Add one-command Unraid start script with template auto-open

This commit is contained in:
J0Z1L 2026-02-27 23:18:28 +01:00
parent 87a680326e
commit fe3601cb5b
2 changed files with 92 additions and 3 deletions

View file

@ -36,12 +36,39 @@ Danach erreichbar unter: [http://localhost:3000](http://localhost:3000)
## Unraid: Build + Template automatisch aktualisieren/anlegen
Einmalig:
```bash
chmod +x scripts/run-unraid.sh
./scripts/run-unraid.sh
chmod +x start.sh scripts/run-unraid.sh
```
Optional mit eigenen Werten:
Danach reicht:
```bash
./start.sh
```
`start.sh` macht:
- optional `git pull --ff-only` (deaktivierbar mit `SKIP_GIT_PULL=1`)
- Build vom Docker-Image
- Unraid-Template automatisch erstellen/aktualisieren
- direkten Sprung zur Unraid Template-Seite: `Docker/AddContainer?xmlTemplate=user/...`
Optional kannst du Werte in `.env.unraid` (oder `.env`) ablegen, z. B.:
```bash
SPOTIFY_CLIENT_ID=xxx
SPOTIFY_CLIENT_SECRET=yyy
LIDARR_URL=http://192.168.1.50:8686
LIDARR_API_KEY=zzz
LIDARR_ROOT_FOLDER=/music
IMAGE_REPO=ghcr.io/dein-user/lidarr-spotify-frontend
IMAGE_TAG=latest
UNRAID_URL=http://tower
```
Alternativ direkt per Umgebungsvariablen:
```bash
SPOTIFY_CLIENT_ID=xxx \
@ -51,6 +78,13 @@ LIDARR_API_KEY=zzz \
LIDARR_ROOT_FOLDER=/music \
IMAGE_REPO=ghcr.io/dein-user/lidarr-spotify-frontend \
IMAGE_TAG=latest \
UNRAID_URL=http://tower \
./start.sh
```
Direkt `run-unraid.sh` ausführen (ohne Auto-Open/ohne git pull):
```bash
./scripts/run-unraid.sh
```