summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testing/gitano-test-tool.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/gitano-test-tool.in b/testing/gitano-test-tool.in
index 1fd39b0..78a6c0e 100644
--- a/testing/gitano-test-tool.in
+++ b/testing/gitano-test-tool.in
@@ -268,6 +268,7 @@ function cmd_setupstandard(owning_user, master_key, bypass_key)
}
if os.getenv("GTT_PROTO") == "http" then
-- setup lighttpd
+ local lua_init = os.getenv("LUA_INIT") or ""
local htpasswd = user_home(owning_user) .. "/htpasswd"
local pid_file = basedir .. "lighttpd.pid"
local port_file = basedir .. "lighttpd.port"
@@ -285,6 +286,7 @@ function cmd_setupstandard(owning_user, master_key, bypass_key)
$HTTP["url"] =~ ".*/gitano-command.cgi$" {
setenv.add-environment = (
"HOME" => %q,
+ "LUA_INIT" => %q,
"GITANO_ROOT" => %q
)
@@ -308,6 +310,7 @@ $HTTP["url"] =~ "^/git/.*$" {
"GIT_HTTP_EXPORT_ALL" => "",
"GIT_PROJECT_ROOT" => %q,
"HOME" => %q,
+ "LUA_INIT" => %q,
"GITANO_ROOT" => %q
)
@@ -322,9 +325,9 @@ $HTTP["url"] =~ "^/git/.*$" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = %q
}
-]]):format(user_home(owning_user), repo_path, htpasswd,
+]]):format(user_home(owning_user), lua_init, repo_path, htpasswd,
gitano.config.lib_bin_path() .. "/gitano-smart-http.cgi", repo_path,
- user_home(owning_user), repo_path, htpasswd))
+ user_home(owning_user), lua_init, repo_path, htpasswd))
fh:close()