From 77e4161e327d0377c2e52864d4fb7bb5f80a24b5 Mon Sep 17 00:00:00 2001 From: Bocki Date: Fri, 11 Feb 2022 11:09:30 +0000 Subject: [PATCH] Change download chown behavior --- root/etc/cont-init.d/10-fix_folders | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/10-fix_folders b/root/etc/cont-init.d/10-fix_folders index ac306a0..18c2396 100644 --- a/root/etc/cont-init.d/10-fix_folders +++ b/root/etc/cont-init.d/10-fix_folders @@ -4,7 +4,9 @@ printf '[cont-init.d] Fixing Folder Permissions\n' chown -R abc:abc /config -chown -R abc:abc /downloads + +# find all folders in the download folder and own them to the container user. This will not change files but should run quicker on big collections. +find /downloads -type d -exec chown abc:abc {} + # Fix misconfigured download locations. The container's download map is always /downloads.