summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-12-30 17:35:09 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-12-30 17:35:09 +0000
commitbb0d5321e23a34729a5d396dd32df26a4d436875 (patch)
tree307784a7c24e84342aadb912ab091d6970de6275
parentcaa670eb15bee2a24fe0cf207248a921616a4b18 (diff)
downloadtrove-setup-jannispohlmann/enable-ccache-nfs.tar.gz
trove-early-setup: Create ccache dir and set up the NFS serverjannispohlmann/enable-ccache-nfs
Create /home/cache/ccache, add an /etc/exports entry to allow clients to mount this directory with read/write permissions via NFS, and enable/start nfs-server.service.
-rwxr-xr-xbins/trove-early-setup4
1 files changed, 4 insertions, 0 deletions
diff --git a/bins/trove-early-setup b/bins/trove-early-setup
index e25c652..88fb8d8 100755
--- a/bins/trove-early-setup
+++ b/bins/trove-early-setup
@@ -86,6 +86,10 @@ lorry-configured: lorry-setup lorry-controller-configured
cache-setup: /home/cache/.cache-setup
/home/cache/.cache-setup: $(ALL_USER_TARGETS)
su -c 'mkdir /home/cache/artifacts' - cache
+ su -c 'mkdir /home/cache/ccache' - cache
+ echo '/home/cache/ccache *(rw,all_squash,no_subtree_check,anonuid=1002,anongid=1002)' > /etc/exports
+ systemctl enable nfs-server.service
+ systemctl start nfs-server.service
touch $@
cache-configured: cache-setup