diff --git a/README.md b/README.md index 1943c11..8e4b9c6 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ docker create \ -v *host path to config*:/config \ -v *host path to data*:/mnt/any/dir/you/want \ -e PGID= -e PUID= \ + -e UMASK_SET=<022> \ -p 8384:8384 -p 22000:22000 -p 21027:21027/udp \ linuxserver/syncthing ``` @@ -45,6 +46,7 @@ http://192.168.x.x:8080 would show you what's running INSIDE the container on po * `-v /mnt/dir` - Add multiple folders to allow Syncthing access to data you wish to sync * `-e PGID` for GroupID - see below for explanation * `-e PUID` for UserID - see below for explanation +* `-e UMASK_SET` for umask setting , *optional* , default if left unset is 022. * `-p 8384` Webui Port * `-p 22000` Listening Port * `-p 21027/udp` Discovery Port @@ -83,6 +85,7 @@ You can find some of the best documentation available on the web at [docs.syncth ## Versions ++ **25.10.17:** Add env for manual setting of umask. + **29.07.17:** Simplify build structure as symlinks failing on > 0.14.32 + **28.05.17:** Rebase to alpine 3.6. + **08.02.17:** Rebase to alpine 3.5. diff --git a/root/etc/services.d/syncthing/run b/root/etc/services.d/syncthing/run index ebcfb31..ed8bba8 100644 --- a/root/etc/services.d/syncthing/run +++ b/root/etc/services.d/syncthing/run @@ -1,6 +1,8 @@ #!/usr/bin/with-contenv bash -umask 022 +UMASK_SET=${UMASK_SET:-022} + +umask "$UMASK_SET" exec \ s6-setuidgid abc syncthing \