Skip to content

fix: add runtime PUID/PGID support for file permissions#38

Merged
johnpc merged 1 commit intomainfrom
fix-puid-pgid
Apr 24, 2026
Merged

fix: add runtime PUID/PGID support for file permissions#38
johnpc merged 1 commit intomainfrom
fix-puid-pgid

Conversation

@johnpc
Copy link
Copy Markdown
Owner

@johnpc johnpc commented Apr 24, 2026

Adds an entrypoint script that adjusts the node user's UID/GID at container startup based on PUID/PGID environment variables. This fixes issues where synced subtitle files aren't written due to permission mismatches on mounted volumes (common on Synology NAS).

Previously PUID/PGID were set at build time which had no effect when users passed them at runtime.

Usage:

environment:
  - PUID=1000  # run `id -u` to find yours
  - PGID=1000  # run `id -g` to find yours

Closes #22

Adds an entrypoint script that adjusts the node user's UID/GID at
container startup based on PUID/PGID environment variables. This fixes
issues where synced subtitle files aren't written due to permission
mismatches on mounted volumes (common on Synology NAS).

Also documents PUID/PGID in docker-compose.yaml and README.

Closes #22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subsyncarr is not generating ffsubsync.srt subtitles

1 participant