mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
parent
aedc2d788f
commit
cd8e1ec738
@ -2,6 +2,10 @@
|
||||
|
||||
set -eu
|
||||
|
||||
if [ "$(id -u)" = '0' ]; then
|
||||
chown "${PUID}:${PGID}" "${HOME}" \
|
||||
&& exec su-exec "${PUID}:${PGID}" \
|
||||
env HOME="$HOME" "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user