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