File: docker-entrypoint.sh

package info (click to toggle)
syncthing 1.12.1~ds1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 18,420 kB
  • sloc: javascript: 36,987; xml: 1,009; sh: 190; makefile: 65
file content (11 lines) | stat: -rwxr-xr-x 177 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -eu

if [ "$(id -u)" = '0' ]; then
  chown "${PUID}:${PGID}" "${HOME}" \
    && exec su-exec "${PUID}:${PGID}" \
       env HOME="$HOME" "$@"
else
  exec "$@"
fi