summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoru <u@billy>2023-05-29 19:58:50 -0400
committeru <u@billy>2023-05-29 19:59:28 -0400
commit79097b522fa33fd25e97d10149a27d9d22aa430a (patch)
tree08946688b6b2d04d3a943b835f879a754f0428f7 /src
parenta9b687835682ab161404744cba960281a2974f7b (diff)
fossil-test service will use generated key
Diffstat (limited to 'src')
-rw-r--r--src/fossil-test@.service12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/fossil-test@.service b/src/fossil-test@.service
index c1ad063..8498733 100644
--- a/src/fossil-test@.service
+++ b/src/fossil-test@.service
@@ -3,10 +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
6RuntimeDirectory = fossil-test-%i 9RuntimeDirectory = fossil-test-%i
7WorkingDirectory = /run/fossil-test-%i 10WorkingDirectory = /run/fossil-test-%i
11Environment = HOME=/run/fossil-test-%i
12BindPaths = /run/fossil-test-%i:/root
13
8ExecStart = sh -xc 'mkdir .ssh' 14ExecStart = sh -xc 'mkdir .ssh'
9ExecStart = sh -xc 'ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""' 15ExecStart = sh -xc 'fakeroot ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""'
10ExecStart = sh -xc 'HOME=. ssh %i@localhost fossil test-http src/fossil/db' 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'
11ExecStart = sh -xc 'HOME=. fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil' 17ExecStart = sh -xc 'fakeroot fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil'
12 18