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@.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fossil-test@.service b/src/fossil-test@.service
new file mode 100644
index 0000000..c1ad063
--- /dev/null
+++ b/src/fossil-test@.service
@@ -0,0 +1,12 @@
1[Unit]
2Description = Test Endofossil by attempting a clone
3
4[Service]
5Type = oneshot
6RuntimeDirectory = fossil-test-%i
7WorkingDirectory = /run/fossil-test-%i
8ExecStart = sh -xc 'mkdir .ssh'
9ExecStart = sh -xc 'ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""'
10ExecStart = sh -xc 'HOME=. ssh %i@localhost fossil test-http src/fossil/db'
11ExecStart = sh -xc 'HOME=. fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil'
12