summaryrefslogtreecommitdiff
path: root/src/fossil-test@.service
diff options
context:
space:
mode:
Diffstat (limited to 'src/fossil-test@.service')
-rw-r--r--src/fossil-test@.service14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/fossil-test@.service b/src/fossil-test@.service
index 1bdd39f..3365708 100644
--- a/src/fossil-test@.service
+++ b/src/fossil-test@.service
@@ -8,13 +8,17 @@ DynamicUser = yes
8 8
9User = fossil-test-user-%i 9User = fossil-test-user-%i
10RuntimeDirectory = fossil-test-%i 10RuntimeDirectory = fossil-test-%i
11BindPaths = /run/fossil-test-%i:/.ssh
12Environment = HOME=/run/fossil-test-%i
13WorkingDirectory = /run/fossil-test-%i
14 11
15ExecStart = sh -exc '\ 12# BindPaths = /run/fossil-test-%i:/.ssh
13# Environment = FOSSIL_HOME=/.ssh
14
15BindPaths = /run/fossil-test-%i:/root/.ssh
16Environment = HOME=/root FOSSIL_HOME=/root/.ssh
17
18ExecStart = sh -c '[ "$HOME" != /root ] || set -- fakeroot "$@"; "$@"' - sh -exc '\
19cd; \
16! touch /test.file; \ 20! touch /test.file; \
17ln -s . .ssh; \ 21mountpoint -q .ssh || ln -s . .ssh; \
18mkdir .ssh/known_hosts.d; \ 22mkdir .ssh/known_hosts.d; \
19ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \ 23ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \
20ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -- %i@localhost :; \ 24ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -- %i@localhost :; \