summaryrefslogtreecommitdiff
path: root/bins
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-13 17:00:15 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-13 17:00:15 +0100
commit5f39c9aaec9113b964655066a563e95461c3fb64 (patch)
tree593d7c2508bcf448d6c0874f5f0acb5e9bcdc942 /bins
parentf9162a48354bb5535f8b5e7321d15dfb585f5b0b (diff)
downloadtrove-setup-5f39c9aaec9113b964655066a563e95461c3fb64.tar.gz
Initial setup substitutions
Diffstat (limited to 'bins')
-rwxr-xr-xbins/trove-early-setup17
1 files changed, 16 insertions, 1 deletions
diff --git a/bins/trove-early-setup b/bins/trove-early-setup
index 2dab4ee..a593183 100755
--- a/bins/trove-early-setup
+++ b/bins/trove-early-setup
@@ -1,10 +1,25 @@
#!/usr/bin/make -f
# -*- Make -*-
-all: gitano-configured
+all: substitutions-done gitano-configured
USERS := git lorry cache
+substitutions-done: /etc/trove-setup.sed hostname-not-baserock
+ sed -f /etc/trove-setup.sed \
+ /usr/share/gitano/skel/gitano-admin/*/*.{lua,lace} \
+ etc/cgitrc etc/gitano-setup.clod
+
+/etc/trove-setup.sed:
+ @echo "You need to create $@ to continue."
+ @echo "There is $@.example which you can work from."
+ @echo "re-run trove-early-setup once you're done with this."
+ @exit 1
+
+.PHONY: hostname-not-baserock
+hostname-not-baserock:
+ test "x$$(hostname)" != "baserock"
+
# $1 == username to make
define make_user_rules