diff options
Diffstat (limited to 'src/fossil-test@.service')
-rw-r--r-- | src/fossil-test@.service | 10 |
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 ""; \ | |||
24 | ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -- %i@localhost :; \ | 24 | ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -- %i@localhost :; \ |
25 | ssh -o BatchMode=yes -o StrictHostKeyChecking=yes -- %i@localhost uptime; \ | 25 | ssh -o BatchMode=yes -o StrictHostKeyChecking=yes -- %i@localhost uptime; \ |
26 | cd .ssh; \ | 26 | cd .ssh; \ |
27 | fossil clone ssh://%i@localhost/fossil-instance-1 db~$(date -Ins).fossil; \ | 27 | fossil clone ssh://%i@localhost/fossil-test-instance-1 db~$(date -Ins).fossil; \ |
28 | fossil clone ssh://%i@localhost/a/b/c/fossil-instance-2 db~$(date -Ins).fossil; \ | 28 | fossil clone ssh://%i@localhost/a/b/c/fossil-test-instance-2 db~$(date -Ins).fossil; \ |
29 | fossil clone ssh://%i@localhost/fossil/db db~$(date -Ins).fossil; \ | 29 | fossil clone ssh://%i@localhost/fossil/db db~$(date -Ins).fossil; \ |
30 | ' | 30 | ' |
31 | ExecStartPost = +runuser -u '%i' -- sh -exc '\ | ||
32 | cd; \ | ||
33 | cd src; \ | ||
34 | rm -f a/b/c/fossil-test-instance-2.fossil a/b/c/.fossil-remotes/*/fossil-test-instance-2.*; \ | ||
35 | rmdir -p a/b/c/.fossil-remotes/* 2>/dev/null ; \ | ||
36 | ' | ||