File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 317
317
resolve_full_httpd
318
318
list_mods=$( echo " $full_httpd " | sed " s/-f$/-l/" )
319
319
$list_mods | grep ' mod_cgi\.c' > /dev/null 2>&1 || \
320
- echo " LoadModule cgi_module $module_path /mod_cgi.so" >> " $conf "
320
+ if test -f " $module_path /mod_cgi.so"
321
+ then
322
+ echo " LoadModule cgi_module $module_path /mod_cgi.so" >> " $conf "
323
+ else
324
+ $list_mods | grep ' mod_cgid\.c' > /dev/null 2>&1 || \
325
+ if test -f " $module_path /mod_cgid.so"
326
+ then
327
+ echo " LoadModule cgid_module $module_path /mod_cgid.so" \
328
+ >> " $conf "
329
+ else
330
+ echo " You have no CGI support!"
331
+ exit 2
332
+ fi
333
+ echo " ScriptSock logs/gitweb.sock" >> " $conf "
334
+ fi
321
335
cat >> " $conf " << EOF
322
336
AddHandler cgi-script .cgi
323
337
<Location /gitweb.cgi>
You can’t perform that action at this time.
0 commit comments