From e8bd16be52acdaa0684d430670e3ec063545d29f Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Mon, 29 May 2023 21:45:12 -0400 Subject: fossil-test: seems to work..? --- src/fossil-test@.service | 22 +++++++++++----------- 1 file 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 [Service] Type = oneshot -DynamicUser = yes -User = fossil-test-user-%i -PrivateUsers = yes -RuntimeDirectory = fossil-test-%i -WorkingDirectory = /run/fossil-test-%i -Environment = HOME=/run/fossil-test-%i -BindPaths = /run/fossil-test-%i:/root -ExecStart = sh -xc 'mkdir .ssh' -ExecStart = sh -xc 'fakeroot ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""' -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' -ExecStart = sh -xc 'fakeroot fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil' +Environment = HOME=/root +WorkingDirectory = /root +TemporaryFileSystem = /root + +ExecStart = sh -exc '\ +mkdir .ssh .ssh/known_hosts.d; \ +ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \ +HOME=. ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new %i@localhost fossil test-http src/fossil/db; \ +HOME=. ssh -o BatchMode=yes -o StrictHostKeyChecking=yes %i@localhost fossil test-http src/fossil/db; \ +HOME=. fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil; \ +' -- cgit v1.2.3