mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
parent
a64ae36bcc
commit
9f8e6966d8
@ -14,8 +14,10 @@ if [ "$(id -u)" = '0' ]; then
|
|||||||
setcap "$PCAP" "$binary"
|
setcap "$PCAP" "$binary"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown "${PUID}:${PGID}" "${HOME}" \
|
# Chown may fail, which may cause us to be unable to start; but maybe
|
||||||
&& exec su-exec "${PUID}:${PGID}" \
|
# it'll work anyway, so we let the error slide.
|
||||||
|
chown "${PUID}:${PGID}" "${HOME}" || true
|
||||||
|
exec su-exec "${PUID}:${PGID}" \
|
||||||
env HOME="$HOME" "$@"
|
env HOME="$HOME" "$@"
|
||||||
else
|
else
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user