diff options
Diffstat (limited to 'src/fossil-test@.service')
-rw-r--r-- | src/fossil-test@.service | 12 |
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] |
5 | Type = oneshot | 5 | Type = oneshot |
6 | DynamicUser = yes | ||
7 | User = fossil-test-user-%i | ||
8 | PrivateUsers = yes | ||
6 | RuntimeDirectory = fossil-test-%i | 9 | RuntimeDirectory = fossil-test-%i |
7 | WorkingDirectory = /run/fossil-test-%i | 10 | WorkingDirectory = /run/fossil-test-%i |
11 | Environment = HOME=/run/fossil-test-%i | ||
12 | BindPaths = /run/fossil-test-%i:/root | ||
13 | |||
8 | ExecStart = sh -xc 'mkdir .ssh' | 14 | ExecStart = sh -xc 'mkdir .ssh' |
9 | ExecStart = sh -xc 'ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""' | 15 | ExecStart = sh -xc 'fakeroot ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""' |
10 | ExecStart = sh -xc 'HOME=. ssh %i@localhost fossil test-http src/fossil/db' | 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' |
11 | ExecStart = sh -xc 'HOME=. fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil' | 17 | ExecStart = sh -xc 'fakeroot fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil' |
12 | 18 | ||