summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-02-11 12:19:57 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2014-03-06 15:08:49 +0000
commitc1c99359b03c099048ac4fc5bbeb48d672d56d62 (patch)
tree3e590619ad0b3a9475919452a304dc4f5af80e70
parent3b5ef2dc366ae22a30d6a1095d69fc8a9f8313d5 (diff)
downloadgitano-c1c99359b03c099048ac4fc5bbeb48d672d56d62.tar.gz
Make gitano-setup ask whether we will use htpasswd
-rw-r--r--bin/gitano-setup.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/gitano-setup.in b/bin/gitano-setup.in
index fbfa58a..61a3246 100644
--- a/bin/gitano-setup.in
+++ b/bin/gitano-setup.in
@@ -161,6 +161,7 @@ validate_name(ask_for("admin.keyname", "Key name for administrator",
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")
gitano.log.chat("Step 2: Gather required content")
@@ -169,6 +170,7 @@ local completely_flat = {}
local site_conf = clod.parse("")
site_conf.settings["site_name"] = get "site.name"
site_conf.settings["log.prefix"] = get "log.prefix"
+site_conf.settings["use_htpasswd"] = get "use.htpasswd"
completely_flat["site.conf"] = site_conf:serialise()
-- Acquire the contents of the skeleton gitano-admin repository