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

This commit is contained in:
Tom Jakubowski authored and Jakob Borg committed 2019-05-18 08:43:53 +02:00
1 parent 441ea109a1
commit cc36621b11
2 files changed
+10 -7

No files matched your search

+8
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 "$@"