summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2014-05-21 13:44:19 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2014-05-21 13:44:19 +0100
commitef7cb90b7e3df1f953d9190f1193101ac4c2f9db (patch)
tree52a6fe19e29c61a7fe5aced06dd956d3ff102125 /bin
parent5f1429e7747cb62ecdd30297d489fba52a1cdfa0 (diff)
downloadgitano-ef7cb90b7e3df1f953d9190f1193101ac4c2f9db.tar.gz
Support paths.skel in gitano-setup to change skeleton pathbaserock/pedroalvarez/trove-ansible3
Diffstat (limited to 'bin')
-rw-r--r--bin/gitano-setup.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/gitano-setup.in b/bin/gitano-setup.in
index f31c8f0..038276c 100644
--- a/bin/gitano-setup.in
+++ b/bin/gitano-setup.in
@@ -164,6 +164,9 @@ ask_for("site.name", "Site name", "a random Gitano instance")
ask_for("log.prefix", "Site log prefix", "gitano")
ask_for("use.htpasswd", "Store passwords with htpasswd? (needed for http authentication)", "no")
+ask_for("paths.skel", "Path to skeleton gitano-admin content",
+ gitano.config.share_path() .. "/skel/gitano-admin")
+
gitano.log.chat("Step 2: Gather required content")
gitano.log.info("=> Prepare site config")
@@ -176,7 +179,7 @@ completely_flat["site.conf"] = site_conf:serialise()
-- Acquire the contents of the skeleton gitano-admin repository
gitano.log.info("=> Acquire skeleton gitano-admin")
-local skel_path = gitano.config.share_path() .. "/skel/gitano-admin"
+local skel_path = get "paths.skel"
local skel = assert(sio.opendir(skel_path))
local function acquire(dir, base, path)
gitano.log.ddebug("Acquire skeleton in:", path)