summaryrefslogtreecommitdiffstats
path: root/contrib/init/freebsd
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-06-05 05:02:04 +0300
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-06-04 22:02:04 -0400
commit1aee261aae74881f65a1152f6fa57bc160adaa16 (patch)
tree6c329fb4a43fe7d39f56ef30ac44ddb81600a29c /contrib/init/freebsd
parent6400d8a3cba41d1435fa0fbe0b5b060062f41e1c (diff)
downloadgitea-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/freebsd')
-rw-r--r--contrib/init/freebsd/gitea5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/init/freebsd/gitea b/contrib/init/freebsd/gitea
index 898606f35f..2c034ce12c 100644
--- a/contrib/init/freebsd/gitea
+++ b/contrib/init/freebsd/gitea
@@ -19,9 +19,9 @@ load_rc_config $name
: ${gitea_user:="git"}
: ${gitea_enable:="NO"}
-: ${gitea_directory:="/home/git"}
+: ${gitea_directory:="/var/lib/gitea"}
-command="${gitea_directory}/gitea web"
+command="/usr/local/bin/gitea web -c /etc/gitea/app.ini"
procname="$(echo $command |cut -d' ' -f1)"
pidfile="${gitea_directory}/${name}.pid"
@@ -33,6 +33,7 @@ gitea_start() {
cd ${gitea_directory}
export USER=${gitea_user}
export HOME=/usr/home/${gitea_user}
+ export GITEA_WORK_DIR=${gitea_directory}
/usr/sbin/daemon -f -u ${gitea_user} -p ${pidfile} $command
}