summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoru <u@billy>2023-05-30 10:13:21 -0400
committeru <u@billy>2023-05-30 10:13:21 -0400
commite26f5210e82621359d7d305b588ea89c18eea708 (patch)
tree811c97b0682f108f2497dd4e1a292c15bc7d4c07
parent825681c32c95ba0f21b54349e33acfc42df0a2d2 (diff)
working non-root fossil-test (depends on libnss-systemd
-rw-r--r--src/fossil-test@.service21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/fossil-test@.service b/src/fossil-test@.service
index 96b9f98..1bdd39f 100644
--- a/src/fossil-test@.service
+++ b/src/fossil-test@.service
@@ -3,13 +3,22 @@ Description = Endofossil Test: Clone over SSH using fresh identity
3 3
4[Service] 4[Service]
5Type = oneshot 5Type = oneshot
6TemporaryFileSystem = /root 6PrivateUsers = yes
7Environment = HOME=/root 7DynamicUser = yes
8WorkingDirectory = /root 8
9User = fossil-test-user-%i
10RuntimeDirectory = fossil-test-%i
11BindPaths = /run/fossil-test-%i:/.ssh
12Environment = HOME=/run/fossil-test-%i
13WorkingDirectory = /run/fossil-test-%i
14
9ExecStart = sh -exc '\ 15ExecStart = sh -exc '\
10mkdir .ssh .ssh/known_hosts.d; \ 16! touch /test.file; \
17ln -s . .ssh; \
18mkdir .ssh/known_hosts.d; \
11ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \ 19ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \
12ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new %i@localhost :; \ 20ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -- %i@localhost :; \
13ssh -o BatchMode=yes -o StrictHostKeyChecking=yes %i@localhost fossil uptime; \ 21ssh -o BatchMode=yes -o StrictHostKeyChecking=yes -- %i@localhost uptime; \
22cd .ssh; \
14fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil; \ 23fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil; \
15' 24'