提交 5209eda8 编写于 作者: J Johannes Schindelin 提交者: Junio C Hamano

instaweb: Be more clear if httpd or the browser fail

Signed-off-by: NJohannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 24cf6e58
......@@ -54,6 +54,10 @@ start_httpd () {
fi
done
fi
if test $? != 0; then
echo "Could not execute http daemon $httpd."
exit 1
fi
}
stop_httpd () {
......@@ -184,7 +188,7 @@ EOF
else
# plain-old CGI
list_mods=`echo "$httpd" | sed "s/-f$/-l/"`
$list_mods | grep 'mod_cgi\.c' >/dev/null || \
$list_mods | grep 'mod_cgi\.c' >/dev/null 2>&1 || \
echo "LoadModule cgi_module $module_path/mod_cgi.so" >> "$conf"
cat >> "$conf" <<EOF
AddHandler cgi-script .cgi
......@@ -234,4 +238,5 @@ esac
start_httpd
test -z "$browser" && browser=echo
$browser http://127.0.0.1:$port
url=http://127.0.0.1:$port
$browser $url || echo $url
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册