summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-27 11:39:41 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-27 11:39:41 +0100
commit3674e1714b4203074992a42309c0245be12abc1c (patch)
tree728d8646eb74a05fb2124f7ee08f05e760fe2d9f
parentef9fb4170bd21a269c5495f4e106a3c31410f35c (diff)
downloadtrove-setup-3674e1714b4203074992a42309c0245be12abc1c.tar.gz
Ensure /home/cache/artifacts is created on setup
-rwxr-xr-xbins/trove-early-setup9
1 files changed, 8 insertions, 1 deletions
diff --git a/bins/trove-early-setup b/bins/trove-early-setup
index 92e888a..0971118 100755
--- a/bins/trove-early-setup
+++ b/bins/trove-early-setup
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
# -*- Make -*-
-all: substitutions-done gitano-configured lorry-configured
+all: substitutions-done gitano-configured lorry-configured cache-configured
USERS := git lorry cache
@@ -62,3 +62,10 @@ lorry-setup: /home/lorry/.lorry-setup
touch $@
lorry-configured: lorry-setup
+
+cache-setup: /home/cache/.cache-setup
+/home/cache/.cache-setup: $(ALL_USER_TARGETS)
+ su -c 'mkdir /home/cache/artifacts' - cache
+ touch $@
+
+cache-configured: cache-setup