From 1aee261aae74881f65a1152f6fa57bc160adaa16 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Tue, 5 Jun 2018 05:02:04 +0300 Subject: More detailed documentation on how to set up from binary (#4121) * More detailed documentation on how to set up from binary Also change recommended file locations --- contrib/init/centos/gitea | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'contrib/init/centos/gitea') diff --git a/contrib/init/centos/gitea b/contrib/init/centos/gitea index c24fc1f01e..4f0d0d99b2 100644 --- a/contrib/init/centos/gitea +++ b/contrib/init/centos/gitea @@ -24,8 +24,8 @@ # Default values NAME=gitea -GITEA_HOME=/home/git/gitea -GITEA_PATH=${GITEA_HOME}/$NAME +GITEA_HOME=/var/lib/${NAME} +GITEA_PATH=/usr/local/bin/${NAME} GITEA_USER=git SERVICENAME="Gitea - Git with a cup of tea" LOCKFILE=/var/lock/subsys/gitea @@ -49,11 +49,11 @@ DAEMON_OPTS="--check $NAME" start() { cd ${GITEA_HOME} echo -n "Starting ${SERVICENAME}: " - daemon $DAEMON_OPTS "${GITEA_PATH} web > ${LOGFILE} 2>&1 &" + daemon $DAEMON_OPTS "${GITEA_PATH} web -c /etc/${NAME}/app.ini > ${LOGFILE} 2>&1 &" RETVAL=$? echo [ $RETVAL = 0 ] && touch ${LOCKFILE} - + return $RETVAL } @@ -63,7 +63,7 @@ stop() { killproc ${NAME} RETVAL=$? echo - [ $RETVAL = 0 ] && rm -f ${LOCKFILE} + [ $RETVAL = 0 ] && rm -f ${LOCKFILE} } case "$1" in -- cgit v1.2.3