Skip to content

Commit 6c1cc22

Browse files
authored
Add skip permission fixing section (#1284)
1 parent aeb653f commit 6c1cc22

File tree

1 file changed

+13
-0
lines changed
  • tools/Documentation/installing-lanraragi

1 file changed

+13
-0
lines changed

tools/Documentation/installing-lanraragi/docker.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,19 @@ This is good enough for most scenarios, but in case you need to run it as the cu
130130

131131
This uses `id` to automatically fetch your userid/groupid.
132132

133+
## Skip permission fixing
134+
135+
By default, LANraragi will change the permissions for all files and folders in the thumbnail and content folder during startup:
136+
137+
- Everything in the thumbnail folder will be owned by the provided UID/GID (9001/9001 by default)
138+
- Files and folders in the thumbnail folder can be read and written by the owner
139+
- Files and folders in the content folder are readable by the owner
140+
- Folders in the thumbnail/content folder can be executed by the owner
141+
142+
While this can resolve some permission issues, but it will result in a longer start-up time for large library and may even prevent the container from starting on Docker Swarm.
143+
144+
To disable this behaviour, you can set the environment variable `LRR_AUTOFIX_PERMISSIONS=-1`, but make sure you have manually set the permissions beforehand.
145+
133146
## Updating
134147

135148
As Docker containers are immutable, you need to destroy your existing container and build a new one.

0 commit comments

Comments
 (0)