summary refs log tree commit diff
path: root/os/etc/s6-rc/src/syncthing-srv/run
blob: d1eaf74cc99498aca0b6c2002914e03a88f11377 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/execlineb -P

envfile /etc/s6-rc/config/user.conf
importas -iu USER USER

backtick -E -D /tmp HOME { homeof ${USER} }
s6-setuidgid ${USER}
export HOME ${HOME}
foreground { install -d ${HOME}/.config/syncthing }

fdmove -c 2 1
exec /usr/bin/syncthing serve --no-browser --home=${HOME}/.config/syncthing --gui-address=http://127.0.0.1:8384 --logfile=/dev/null