summaryrefslogtreecommitdiff
path: root/src/fossil-test@.service
diff options
context:
space:
mode:
Diffstat (limited to 'src/fossil-test@.service')
-rw-r--r--src/fossil-test@.service10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/fossil-test@.service b/src/fossil-test@.service
index 1643925..edfb79e 100644
--- a/src/fossil-test@.service
+++ b/src/fossil-test@.service
@@ -24,7 +24,13 @@ ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \
24ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -- %i@localhost :; \ 24ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -- %i@localhost :; \
25ssh -o BatchMode=yes -o StrictHostKeyChecking=yes -- %i@localhost uptime; \ 25ssh -o BatchMode=yes -o StrictHostKeyChecking=yes -- %i@localhost uptime; \
26cd .ssh; \ 26cd .ssh; \
27fossil clone ssh://%i@localhost/fossil-instance-1 db~$(date -Ins).fossil; \ 27fossil clone ssh://%i@localhost/fossil-test-instance-1 db~$(date -Ins).fossil; \
28fossil clone ssh://%i@localhost/a/b/c/fossil-instance-2 db~$(date -Ins).fossil; \ 28fossil clone ssh://%i@localhost/a/b/c/fossil-test-instance-2 db~$(date -Ins).fossil; \
29fossil clone ssh://%i@localhost/fossil/db db~$(date -Ins).fossil; \ 29fossil clone ssh://%i@localhost/fossil/db db~$(date -Ins).fossil; \
30' 30'
31ExecStartPost = +runuser -u '%i' -- sh -exc '\
32cd; \
33cd src; \
34rm -f a/b/c/fossil-test-instance-2.fossil a/b/c/.fossil-remotes/*/fossil-test-instance-2.*; \
35rmdir -p a/b/c/.fossil-remotes/* 2>/dev/null ; \
36'