summaryrefslogtreecommitdiff
path: root/distbuild/lib/systemd/system-generators/ccache-nfs-mount-generator
blob: 127bc84fbc06fb24ea69631d18f3adade7120f1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
read trove_host </etc/trove-host
while read line; do echo "$line"; done >"$1/srv-distbuild-ccache.mount" <<EOF
[Unit]
Requires=rpcbind.service
After=rpcbind.service
SourcePath=/etc/trove-host

[Mount]
Type=nfs
What=$trove_host:/home/cache/ccache
Where=/srv/distbuild/ccache

[Install]
WantedBy=morph-worker.service
EOF