diff options
Diffstat (limited to 'script/docker-entrypoint.sh')
-rwxr-xr-x | script/docker-entrypoint.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/docker-entrypoint.sh b/script/docker-entrypoint.sh index af87ef80b..26a0c12c5 100755 --- a/script/docker-entrypoint.sh +++ b/script/docker-entrypoint.sh @@ -2,9 +2,11 @@ set -eu +[ -n "${UMASK:-}" ] && umask "$UMASK" + if [ "$(id -u)" = '0' ]; then binary="$1" - if [ "${PCAP:-}" == "" ] ; then + if [ -z "${PCAP:-}" ]; then # If Syncthing should have no extra capabilities, make sure to remove them # from the binary. This will fail with an error if there are no # capabilities to remove, hence the || true etc. |