From 2bfc887835c8364daf33e1c290c80ec18e4d82db Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Sun, 25 Mar 2012 18:01:59 -0400
Subject: [PATCH] Fixed Gravatar image security exception with Wicket 1.4.20

---
 distrib/gitblit-centos |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/distrib/gitblit-centos b/distrib/gitblit-centos
index db2fdef..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
@@ -25,7 +26,8 @@
   stop)
     if [ -f $GITBLIT_PATH/gitblit.jar ];
       then
-      echo $"Starting gitblit server"
+      echo $"Stopping gitblit server"
+      cd $GITBLIT_PATH
       $JAVA $GITBLIT_PATH/gitblit.jar --stop > /dev/null &
       echo "."
       exit $RETVAL

--
Gitblit v1.9.1