Dispatcharr/docker/init
Mattias Svensson cbb8a52163 Fix: nginx startup failure due to group name mismatch
The script was creating a group named 'dispatch' (hardcoded) while
nginx.conf expected a group matching POSTGRES_USER (e.g., 'dispatcharr').

Changes:
- Use $POSTGRES_USER for group name instead of hardcoded 'dispatch'
- Make sed command more robust to match any existing user directive

This ensures the group name matches the user name, fixing the error:
"getgrnam("dispatcharr") failed in /etc/nginx/nginx.conf:1"

Fixes #877

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 08:04:49 +01:00
..
01-user-setup.sh Fix: nginx startup failure due to group name mismatch 2026-01-21 08:04:49 +01:00
02-postgres.sh Convert postgres to UTF8 from ASCII 2025-08-02 19:02:57 -05:00
03-init-dispatcharr.sh Fix root-owned __pycache__ by running Django commands as non-root user 2025-12-31 12:16:19 -05:00
04-check-hwaccel.sh Vastly improved logic for detecting recommended acceleration methods. 2025-05-13 12:32:49 -05:00
99-init-dev.sh Remote debugging initial commit. 2025-03-27 09:49:51 -05:00