mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Manage Syncthing with turnstile service
This commit is contained in:
3
dotfiles/desktop/.config/service/syncthing/log/run
Executable file
3
dotfiles/desktop/.config/service/syncthing/log/run
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec svlogd -tt ./main
|
||||
9
dotfiles/desktop/.config/service/syncthing/run
Executable file
9
dotfiles/desktop/.config/service/syncthing/run
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
if [ -n "${TURNSTILE_ENV_DIR:-}" ]; then
|
||||
exec chpst -e "$TURNSTILE_ENV_DIR" syncthing serve --no-browser --logfile=default
|
||||
fi
|
||||
|
||||
exec syncthing serve --no-browser --logfile=default
|
||||
Reference in New Issue
Block a user