mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +00:00
parent
aedc2d788f
commit
cd8e1ec738
@ -2,6 +2,10 @@
|
||||
|
||||
set -eu
|
||||
|
||||
chown "${PUID}:${PGID}" "${HOME}" \
|
||||
&& exec su-exec "${PUID}:${PGID}" \
|
||||
env HOME="$HOME" "$@"
|
||||
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