How to disable user data directory permission changes #153
-
Hey felddy. First off, thanks for a great container, I moved to this after official release and it's been rock solid. I've noticed the start up script sets permissions on the user data folder at every start. I have my whole Tabletop resources folder mapped to /Data/resources for easy access to my maps and tokens I own. my Foundry Docker and UnRaid seem to be in a battle for permissions of this folder, as sometimes when I restart my Foundry Docker it takes some time for it to check the permissions and reassign them as it's quite a large folder. This also causes some issues when browsing the folders as a user and I have to manually override them to get access to my folders as a user again. Am I just doing it wrong? Can I disable setting the user data permissions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @jbking93-git, I'm glad you've found the container useful! You can prevent the container from modifying the permissions of the
For your use case set I think this will solve the permission fighting issue for you. Let me know how it goes. |
Beta Was this translation helpful? Give feedback.
Hey @jbking93-git,
I'm glad you've found the container useful!
You can prevent the container from modifying the permissions of the
/data
volume using theCONTAINER_PRESERVE_OWNER
environment variable. Here is the relevant section from theREADME.md
:CONTAINER_PRESERVE_OWNER
/data
directory and its contents are changed to match that of the server at startup. Setting this to a regular expression will exclude any matching paths and preserve their ownership. Note: This is a match on the whole path, not a search. This is useful if you want mount a volume as read-only inside/data
(e.g.; a volume that contains assets mounted at/data/Data/assets
).