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/suse | |
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/suse')
-rw-r--r-- | contrib/init/suse/gitea | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/init/suse/gitea b/contrib/init/suse/gitea index 77fb6689cf..23178583ff 100644 --- a/contrib/init/suse/gitea +++ b/contrib/init/suse/gitea @@ -18,10 +18,10 @@ # 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="Git - with a cup of tea" +SERVICENAME="Gitea - Git with a cup of tea" LOCKFILE=/var/lock/subsys/gitea LOGPATH=${GITEA_HOME}/log LOGFILE=${LOGPATH}/error.log @@ -58,7 +58,7 @@ case "$1" in # return skipped as service is already running (exit 5) else - su - ${GITEA_USER} -c "USER=${GITEA_USER} ${GITEA_PATH} web 2>&1 >>${LOGFILE} &" + su - ${GITEA_USER} -c "USER=${GITEA_USER} GITEA_WORK_DIR=${GITEA_HOME} ${GITEA_PATH} web -c /etc/${NAME}/app.ini 2>&1 >>${LOGFILE} &" fi # Remember status and be verbose |