From a71c5a27e3768cb68b979eac6ec8c7d7612dec8f Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 02 Feb 2012 17:14:43 -0500
Subject: [PATCH] Adjustments to init scripts

---
 distrib/gitblit-centos |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/distrib/gitblit-centos b/distrib/gitblit-centos
index bb69b05..387d1fb 100644
--- a/distrib/gitblit-centos
+++ b/distrib/gitblit-centos
@@ -16,6 +16,7 @@
     if [ -f $GITBLIT_PATH/gitblit.jar ];
       then
       echo $"Starting gitblit server"
+      cd $GITBLIT_PATH
       $JAVA $GITBLIT_PATH/gitblit.jar --httpsPort $GITBLIT_HTTPS_PORT --httpPort $GITBLIT_HTTP_PORT > /dev/null &
       echo "."
       exit $RETVAL
@@ -26,6 +27,7 @@
     if [ -f $GITBLIT_PATH/gitblit.jar ];
       then
       echo $"Stopping gitblit server"
+      cd $GITBLIT_PATH
       $JAVA $GITBLIT_PATH/gitblit.jar --stop > /dev/null &
       echo "."
       exit $RETVAL

--
Gitblit v1.9.1