Fix root-owned file/directory creation on host mounts#11
Open
Icenova20 wants to merge 1 commit intoRandomNinjaAtk:mainfrom
Open
Fix root-owned file/directory creation on host mounts#11Icenova20 wants to merge 1 commit intoRandomNinjaAtk:mainfrom
Icenova20 wants to merge 1 commit intoRandomNinjaAtk:mainfrom
Conversation
Modified logfileSetup and directory creation to use chown with PUID/PGID environment variables, preventing root-owned files on host mounts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses an issue where scripts running inside the container create directories and files
(logs, search records, and download folders) as the root user. In many setups, these paths are mapped
to host volumes, leading to Permission Denied errors for the main Arr applications
(Sonarr/Radarr/Lidarr) which typically run as a non-root user (UID 1000).
Changes
Note on Defaults
I have used 1000:1000 as the fallback default as it is the standard for most Docker home-server
environments (LinuxServer.io, hotio, etc.). I recognize that this default may not apply to every
system (e.g., Synology or custom UID setups), but by utilizing the environment variables, users can
easily override this in their docker-compose.yml or environment config without modifying the scripts.