Skip to content

Commit 77e89da

Browse files
authored
Merge pull request #17 from linuxserver/umask_set
allow manual setting of umask via env
2 parents 2a8e4fc + ffe1770 commit 77e89da

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ docker create \
2929
-v *host path to config*:/config \
3030
-v *host path to data*:/mnt/any/dir/you/want \
3131
-e PGID=<gid> -e PUID=<uid> \
32+
-e UMASK_SET=<022> \
3233
-p 8384:8384 -p 22000:22000 -p 21027:21027/udp \
3334
linuxserver/syncthing
3435
```
@@ -45,6 +46,7 @@ http://192.168.x.x:8080 would show you what's running INSIDE the container on po
4546
* `-v /mnt/dir` - Add multiple folders to allow Syncthing access to data you wish to sync
4647
* `-e PGID` for GroupID - see below for explanation
4748
* `-e PUID` for UserID - see below for explanation
49+
* `-e UMASK_SET` for umask setting , *optional* , default if left unset is 022.
4850
* `-p 8384` Webui Port
4951
* `-p 22000` Listening Port
5052
* `-p 21027/udp` Discovery Port
@@ -83,6 +85,7 @@ You can find some of the best documentation available on the web at [docs.syncth
8385

8486
## Versions
8587

88+
+ **25.10.17:** Add env for manual setting of umask.
8689
+ **29.07.17:** Simplify build structure as symlinks failing on > 0.14.32
8790
+ **28.05.17:** Rebase to alpine 3.6.
8891
+ **08.02.17:** Rebase to alpine 3.5.

root/etc/services.d/syncthing/run

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/with-contenv bash
22

3-
umask 022
3+
UMASK_SET=${UMASK_SET:-022}
4+
5+
umask "$UMASK_SET"
46

57
exec \
68
s6-setuidgid abc syncthing \

0 commit comments

Comments
 (0)