mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Manage Syncthing with turnstile service
This commit is contained in:
@@ -35,6 +35,7 @@ void_packages_base:
|
||||
- seahorse
|
||||
- socklog
|
||||
- socklog-void
|
||||
- syncthing
|
||||
- tmux
|
||||
- tealdeer
|
||||
- tree-sitter-grammars
|
||||
|
||||
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