From 2b5d2d8792c861913d48bcfe02d8a6049c3911f5 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 26 Jul 2006 16:33:18 +0200 Subject: [PATCH] git-instaweb: some Apache have mod_cgi builtin So test for it, and do not always try to load mod_cgi.o. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- git-instaweb.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-instaweb.sh b/git-instaweb.sh index 63b18b99f..9829c5915 100755 --- a/git-instaweb.sh +++ b/git-instaweb.sh @@ -183,8 +183,10 @@ PerlPassEnv GIT_EXEC_DIR EOF else # plain-old CGI + list_mods=`echo "$httpd" | sed "s/-f$/-l/"` + $list_mods | grep 'mod_cgi\.c' >/dev/null || \ + echo "LoadModule cgi_module $module_path/mod_cgi.so" >> "$conf" cat >> "$conf" < Options +ExecCGI -- 2.30.2