summaryrefslogtreecommitdiff
path: root/src/fossil-test@.service
blob: 3f14e62f41bf2438633ae4971cdd5c51d3e64b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description = Test Endofossil by attempting a clone

[Service]
Type = oneshot

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; \
'