summaryrefslogtreecommitdiff
path: root/src/fossil-test@.service
blob: 96b9f980f24eb732bfe30400d871320d50dfb144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description = Endofossil Test: Clone over SSH using fresh identity

[Service]
Type = oneshot
TemporaryFileSystem = /root
Environment = HOME=/root
WorkingDirectory = /root
ExecStart = sh -exc '\
mkdir .ssh .ssh/known_hosts.d; \
ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \
ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new %i@localhost :; \
ssh -o BatchMode=yes -o StrictHostKeyChecking=yes %i@localhost fossil uptime; \
fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil; \
'