git-instaweb: Extract configuring web server into configure_httpd
This is preparatory work for making start/restart check that git-instaweb set up correct configuration, and generate it if it is missing. Pure refactoring, no functional changes. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Acked-by: Eric Wong <normalperson@yhbt.net>
This commit is contained in:
parent
f696543dad
commit
db61f060be
@ -587,11 +587,7 @@ our \$projects_list = \$projectroot;
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
gitweb_conf
|
configure_httpd() {
|
||||||
|
|
||||||
resolve_full_httpd
|
|
||||||
mkdir -p "$fqgitdir/gitweb/$httpd_only"
|
|
||||||
|
|
||||||
case "$httpd" in
|
case "$httpd" in
|
||||||
*lighttpd*)
|
*lighttpd*)
|
||||||
lighttpd_conf
|
lighttpd_conf
|
||||||
@ -613,6 +609,14 @@ webrick)
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
gitweb_conf
|
||||||
|
|
||||||
|
resolve_full_httpd
|
||||||
|
mkdir -p "$fqgitdir/gitweb/$httpd_only"
|
||||||
|
|
||||||
|
configure_httpd
|
||||||
|
|
||||||
start_httpd
|
start_httpd
|
||||||
url=http://127.0.0.1:$port
|
url=http://127.0.0.1:$port
|
||||||
|
Loading…
x
Reference in New Issue
Block a user