From a69c2b5e45bc9134712f724ed62f1483e8a42ab2 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 3 Mar 2021 22:36:04 +0200
Subject: [PATCH] The directory already exists, just set the permissions.

The uid will differ because it will the host user, but the entrypoint
script should take care of it.
---
 daemon/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemon/Dockerfile b/daemon/Dockerfile
index 166402a..f862956 100644
--- a/daemon/Dockerfile
+++ b/daemon/Dockerfile
@@ -6,8 +6,8 @@ RUN apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpin
     apk add --update --no-cache \
         transmission-daemon \
     && \
+    install -d -m 555 /var/lib/transmission && \
     mkdir -m 777 /run/transmission && \
-    mkdir -m 777 /var/lib/transmission && \
     mkdir /etc/transmission
 COPY --chown=root:root entrypoint /
 COPY settings.json /etc/transmission/
-- 
GitLab