mirror of
https://github.com/linuxserver/docker-syncthing.git
synced 2026-02-19 20:04:00 +08:00
allow manual setting of umask via env
This commit is contained in:
parent
2a8e4fc3bd
commit
ffe17705bb
@ -29,6 +29,7 @@ docker create \
|
||||
-v *host path to config*:/config \
|
||||
-v *host path to data*:/mnt/any/dir/you/want \
|
||||
-e PGID=<gid> -e PUID=<uid> \
|
||||
-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.
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
umask 022
|
||||
UMASK_SET=${UMASK_SET:-022}
|
||||
|
||||
umask "$UMASK_SET"
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc syncthing \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user