diff options
author | Andrew Cady <d@jerkface.net> | 2023-05-29 21:45:12 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2023-05-29 21:45:12 -0400 |
commit | e8bd16be52acdaa0684d430670e3ec063545d29f (patch) | |
tree | b16eb7737524dd4fc883125e9426f76e8bd2d6ed | |
parent | 79097b522fa33fd25e97d10149a27d9d22aa430a (diff) |
fossil-test: seems to work..?
-rw-r--r-- | src/fossil-test@.service | 22 |
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] |
5 | Type = oneshot | 5 | Type = oneshot |
6 | DynamicUser = yes | ||
7 | User = fossil-test-user-%i | ||
8 | PrivateUsers = yes | ||
9 | RuntimeDirectory = fossil-test-%i | ||
10 | WorkingDirectory = /run/fossil-test-%i | ||
11 | Environment = HOME=/run/fossil-test-%i | ||
12 | BindPaths = /run/fossil-test-%i:/root | ||
13 | 6 | ||
14 | ExecStart = sh -xc 'mkdir .ssh' | 7 | Environment = HOME=/root |
15 | ExecStart = sh -xc 'fakeroot ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""' | 8 | WorkingDirectory = /root |
16 | ExecStart = 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' | 9 | TemporaryFileSystem = /root |
17 | ExecStart = sh -xc 'fakeroot fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil' | 10 | |
11 | ExecStart = sh -exc '\ | ||
12 | mkdir .ssh .ssh/known_hosts.d; \ | ||
13 | ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \ | ||
14 | HOME=. ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new %i@localhost fossil test-http src/fossil/db; \ | ||
15 | HOME=. ssh -o BatchMode=yes -o StrictHostKeyChecking=yes %i@localhost fossil test-http src/fossil/db; \ | ||
16 | HOME=. fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil; \ | ||
17 | ' | ||
18 | 18 | ||