summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoru <u@billy>2023-05-30 11:02:43 -0400
committeru <u@billy>2023-05-30 11:03:19 -0400
commit0dc6286194bb7423d163b63ae7cedd37f0629630 (patch)
treebd6794ce1f0c614f9ed41a761790c90311eb061f
parente26f5210e82621359d7d305b588ea89c18eea708 (diff)
fossil-test uses either fakeroot or libnss-systemd with same ExecStart
-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 :; \