summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2023-05-29 21:45:12 -0400
committerAndrew Cady <d@jerkface.net>2023-05-29 21:45:12 -0400
commite8bd16be52acdaa0684d430670e3ec063545d29f (patch)
treeb16eb7737524dd4fc883125e9426f76e8bd2d6ed
parent79097b522fa33fd25e97d10149a27d9d22aa430a (diff)
fossil-test: seems to work..?
-rw-r--r--src/fossil-test@.service22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/fossil-test@.service b/src/fossil-test@.service
index 8498733..3f14e62 100644
--- a/src/fossil-test@.service
+++ b/src/fossil-test@.service
@@ -3,16 +3,16 @@ Description = Test Endofossil by attempting a clone
3 3
4[Service] 4[Service]
5Type = oneshot 5Type = oneshot
6DynamicUser = yes
7User = fossil-test-user-%i
8PrivateUsers = yes
9RuntimeDirectory = fossil-test-%i
10WorkingDirectory = /run/fossil-test-%i
11Environment = HOME=/run/fossil-test-%i
12BindPaths = /run/fossil-test-%i:/root
13 6
14ExecStart = sh -xc 'mkdir .ssh' 7Environment = HOME=/root
15ExecStart = sh -xc 'fakeroot ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""' 8WorkingDirectory = /root
16ExecStart = sh -xc 'fakeroot ssh -o UserKnownHostsFile=.ssh/known_hosts -o StrictHostKeyChecking=accept-new -i .ssh/id_ed25519 %i@localhost fossil test-http src/fossil/db' 9TemporaryFileSystem = /root
17ExecStart = sh -xc 'fakeroot fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil' 10
11ExecStart = sh -exc '\
12mkdir .ssh .ssh/known_hosts.d; \
13ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \
14HOME=. ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new %i@localhost fossil test-http src/fossil/db; \
15HOME=. ssh -o BatchMode=yes -o StrictHostKeyChecking=yes %i@localhost fossil test-http src/fossil/db; \
16HOME=. fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil; \
17'
18 18