From a4b7cfb4f35785e3b3604aa359b29fce28675c79 Mon Sep 17 00:00:00 2001 From: Youe Graillot Date: Fri, 25 Nov 2022 21:37:14 +0100 Subject: [PATCH] fix ownership --- root/etc/services.d/setup/run | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/root/etc/services.d/setup/run b/root/etc/services.d/setup/run index b683241..816f5b3 100644 --- a/root/etc/services.d/setup/run +++ b/root/etc/services.d/setup/run @@ -31,6 +31,17 @@ if [ ! -x /usr/local/bin/clean-downloads.sh ]; then chmod +x /usr/local/bin/*.sh fi +if [ "$(stat -c '%g' /music)" != "$PGUID" ]; then + echo "Changing ownership of /music" + chown "$PUID:$PGID" /music +fi + +if [ "$(stat -c '%g' /downloads)" != "$PGUID" ]; then + echo "Changing ownership of /downloads" + chown "$PUID:$PGID" /downloads +fi + + echo " ---------------------------------------------------------------------- LIDARR SETUP