diff options
author | Lauris BH <lauris@nix.lv> | 2018-06-05 05:02:04 +0300 |
---|---|---|
committer | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-06-04 22:02:04 -0400 |
commit | 1aee261aae74881f65a1152f6fa57bc160adaa16 (patch) | |
tree | 6c329fb4a43fe7d39f56ef30ac44ddb81600a29c /contrib/init/centos/gitea | |
parent | 6400d8a3cba41d1435fa0fbe0b5b060062f41e1c (diff) | |
download | gitea-1aee261aae74881f65a1152f6fa57bc160adaa16.tar.gz gitea-1aee261aae74881f65a1152f6fa57bc160adaa16.zip |
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
Diffstat (limited to 'contrib/init/centos/gitea')
-rw-r--r-- | contrib/init/centos/gitea | 10 |
1 files changed, 5 insertions, 5 deletions
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 |