docker: Create entrypoint script (fixes #5631) (#5635)

This commit is contained in:
Tom Jakubowski
2019-05-17 23:43:53 -07:00
committed by Jakob Borg
parent 441ea109a1
commit cc36621b11
2 changed files with 10 additions and 7 deletions

8
script/docker-entrypoint.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
chown "${PUID}:${PGID}" /var/syncthing \
&& exec su-exec "${PUID}:${PGID}" \
env HOME=/var/syncthing \
/bin/syncthing "$@"