Move user services to turnstile

This commit is contained in:
Fabio Scotto di Santolo
2026-04-14 14:12:30 +02:00
parent e74afc6087
commit 5e8a1b7bc2
10 changed files with 31 additions and 203 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -eu
if [ -n "${TURNSTILE_ENV_DIR:-}" ]; then
exec chpst -e "$TURNSTILE_ENV_DIR" /usr/local/bin/ollama serve
fi
exec /usr/local/bin/ollama serve

View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
sockdir="$HOME/.local/state/ssh-agent"
sockpath="$sockdir/socket"
mkdir -p "$sockdir"
rm -f "$sockpath"
if [ -n "${TURNSTILE_ENV_DIR:-}" ]; then
exec chpst -e "$TURNSTILE_ENV_DIR" ssh-agent -D -a "$sockpath"
fi
exec ssh-agent -D -a "$sockpath"