From 12c31ef28e1396f652f6f80f84480c0833182150 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Wed, 21 Mar 2012 20:01:30 -0400
Subject: [PATCH] Restore the leading hunk of the first line of a fragment

---
 distrib/gitblit |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/distrib/gitblit b/distrib/gitblit
index 9ae4d03..3fda9eb 100644
--- a/distrib/gitblit
+++ b/distrib/gitblit
@@ -2,7 +2,7 @@
 
 set -e
 
-GITBLIT_PATH=/opt/gitblit/
+GITBLIT_PATH=/opt/gitblit
 GITBLIT_HTTP_PORT=0
 GITBLIT_HTTPS_PORT=8443
 JAVA="java -server -Xmx1024M -jar"
@@ -12,12 +12,14 @@
 case "$1" in
   start)
         log_action_begin_msg "Starting gitblit server"
-        $JAVA $GITBLIT_PATH/gitblit.jar --httpsPort $GITBLIT_HTTPS_PORT --httpPort $GITBLIT_HTTP_PORT &
+        cd $GITBLIT_PATH
+        $JAVA $GITBLIT_PATH/gitblit.jar --httpsPort $GITBLIT_HTTPS_PORT --httpPort $GITBLIT_HTTP_PORT > /dev/null &
         log_action_end_msg $?
         ;;
   stop)
         log_action_begin_msg "Stopping gitblit server"
-        $JAVA $GITBLIT_PATH/gitblit.jar --stop &
+        cd $GITBLIT_PATH
+        $JAVA $GITBLIT_PATH/gitblit.jar --stop > /dev/null &
         log_action_end_msg $?
         ;;
   force-reload|restart)

--
Gitblit v1.9.1