Fixing command line options in init.d script

Adding missing "--host" option and fixing the declaration of other
command line options.
This commit is contained in:
Jiri Tyr
2013-10-21 22:47:27 +01:00
parent 2e239d16d4
commit 99517fa508
2 changed files with 10 additions and 3 deletions

View File

@@ -12,7 +12,6 @@
. /etc/rc.d/init.d/functions
# Default values
GITBUCKET_PORT=8080
GITBUCKET_HOME=/var/lib/gitbucket
GITBUCKET_WAR_FILE=/usr/share/gitbucket/lib/gitbucket.war
@@ -31,9 +30,14 @@ start() {
echo -n $"Starting GitBucket server: "
# Compile statup parameters
START_OPTS="--port=${GITBUCKET_PORT}"
if [ $GITBUCKET_PORT ]; then
START_OPTS="${START_OPTS} --port=${GITBUCKET_PORT}"
fi
if [ $GITBUCKET_PREFIX ]; then
START_OPTS="${START_OPTS} --prefix ${GITBUCKET_PREFIX}"
START_OPTS="${START_OPTS} --prefix=${GITBUCKET_PREFIX}"
fi
if [ $GITBUCKET_HOST ]; then
START_OPTS="${START_OPTS} --host=${GITBUCKET_HOST}"
fi
if [ $GITBUCKET_HTTPS ]; then
START_OPTS="${START_OPTS} --https=true"