mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-19 03:25:16 +00:00
12 lines
177 B
Bash
Executable File
12 lines
177 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
if [ "$(id -u)" = '0' ]; then
|
|
chown "${PUID}:${PGID}" "${HOME}" \
|
|
&& exec su-exec "${PUID}:${PGID}" \
|
|
env HOME="$HOME" "$@"
|
|
else
|
|
exec "$@"
|
|
fi
|