diff --git a/CHANGELOG.md b/CHANGELOG.md index 918bac3..afcab5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 2020-06-12 +- Added UMASK_SET environment variable (I misunderstood how it worked.. now it should work) + ## 2020-06-11 - First entry in the changelog. This is for the container only, not for deemix or any of it's components. - Switched port to 6595 from 9666 (due to pyweb update). THIS SHOULD BE FIX NOW. I have hard-coded the port into the run parameter, so even if deemix itself will switch the port, you should always just have to map to 6595 diff --git a/README.md b/README.md index 7b2ec23..ead48d9 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ $ docker run -d --name Deemix \ -e PUID=1000 \ -e PGID=1000 \ -e ARL=1234567 \ + -e UMASK_SET=022 \ -p 6595:6595 \ registry.gitlab.com/bockiii/deemix-docker ``` @@ -43,6 +44,7 @@ services: - PUID=1000 - PGID=1000 - ARL=1234567 + - UMASK_SET=022 ports: - 6595:6595 ``` @@ -63,6 +65,8 @@ The container will look for a new update in the Deemix repo on every start and w `-e ARL=1234567` - OPTIONAL: If you want Deemix to automatically log in for everyone who opens the website, provide your ARL token via this Environment variable. +`-e UMASK_SET=022 - OPTIONAL: Setting UMASK for file permissions Default is 022 + `-p 6595:6595` - Port opened for the web interface. `registry.gitlab.com/bockiii/deemix-docker` - This container. diff --git a/docker-compose.yml b/docker-compose.yml index 805f068..5666ce2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,5 +10,6 @@ services: - PUID=1000 - PGID=1000 - ARL=1234567 + - UMASK_SET=022 ports: - 6595:6595 \ No newline at end of file diff --git a/root/etc/services.d/deemix/run b/root/etc/services.d/deemix/run index ddb30af..1d9099b 100644 --- a/root/etc/services.d/deemix/run +++ b/root/etc/services.d/deemix/run @@ -1,5 +1,8 @@ #!/usr/bin/with-contenv bash +UMASK_SET=${UMASK_SET:-022} +umask "$UMASK_SET" + cd /deemix HOME=/deem