mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +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
|