diff options
author | u <u@billy> | 2023-05-30 11:02:43 -0400 |
---|---|---|
committer | u <u@billy> | 2023-05-30 11:03:19 -0400 |
commit | 0dc6286194bb7423d163b63ae7cedd37f0629630 (patch) | |
tree | bd6794ce1f0c614f9ed41a761790c90311eb061f | |
parent | e26f5210e82621359d7d305b588ea89c18eea708 (diff) |
fossil-test uses either fakeroot or libnss-systemd with same ExecStart
-rw-r--r-- | src/fossil-test@.service | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/fossil-test@.service b/src/fossil-test@.service index 1bdd39f..3365708 100644 --- a/src/fossil-test@.service +++ b/src/fossil-test@.service | |||
@@ -8,13 +8,17 @@ DynamicUser = yes | |||
8 | 8 | ||
9 | User = fossil-test-user-%i | 9 | User = fossil-test-user-%i |
10 | RuntimeDirectory = fossil-test-%i | 10 | RuntimeDirectory = fossil-test-%i |
11 | BindPaths = /run/fossil-test-%i:/.ssh | ||
12 | Environment = HOME=/run/fossil-test-%i | ||
13 | WorkingDirectory = /run/fossil-test-%i | ||
14 | 11 | ||
15 | ExecStart = sh -exc '\ | 12 | # BindPaths = /run/fossil-test-%i:/.ssh |
13 | # Environment = FOSSIL_HOME=/.ssh | ||
14 | |||
15 | BindPaths = /run/fossil-test-%i:/root/.ssh | ||
16 | Environment = HOME=/root FOSSIL_HOME=/root/.ssh | ||
17 | |||
18 | ExecStart = sh -c '[ "$HOME" != /root ] || set -- fakeroot "$@"; "$@"' - sh -exc '\ | ||
19 | cd; \ | ||
16 | ! touch /test.file; \ | 20 | ! touch /test.file; \ |
17 | ln -s . .ssh; \ | 21 | mountpoint -q .ssh || ln -s . .ssh; \ |
18 | mkdir .ssh/known_hosts.d; \ | 22 | mkdir .ssh/known_hosts.d; \ |
19 | ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \ | 23 | ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""; \ |
20 | ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -- %i@localhost :; \ | 24 | ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -- %i@localhost :; \ |