git-instaweb: Use $conf, not $fqgitdir/gitweb/httpd.conf
Don't repeat yourself: use "$conf" instead of its [current] contents, namely "$fqgitdir/gitweb/httpd.conf". Signed-off-by: Jakub Narebski <jnareb@gmail.com> Acked-by: Eric Wong <normalperson@yhbt.net>maint
parent
db61f060be
commit
48bf76ca93
|
@ -103,7 +103,7 @@ start_httpd () {
|
||||||
case "$httpd" in
|
case "$httpd" in
|
||||||
*mongoose*|*plackup*)
|
*mongoose*|*plackup*)
|
||||||
#These servers don't have a daemon mode so we'll have to fork it
|
#These servers don't have a daemon mode so we'll have to fork it
|
||||||
$full_httpd "$fqgitdir/gitweb/httpd.conf" &
|
$full_httpd "$conf" &
|
||||||
#Save the pid before doing anything else (we'll print it later)
|
#Save the pid before doing anything else (we'll print it later)
|
||||||
pid=$!
|
pid=$!
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ $pid
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
$full_httpd "$fqgitdir/gitweb/httpd.conf"
|
$full_httpd "$conf"
|
||||||
if test $? != 0; then
|
if test $? != 0; then
|
||||||
echo "Could not execute http daemon $httpd."
|
echo "Could not execute http daemon $httpd."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue