www-servers/gitlab-gitaly:

Update ebuild for gitlab-gitaly-0.11.2 in preparation of the addition of gitlab-ce-9.3.5

Package-Manager: Portage-2.3.6, Repoman-2.3.1
This commit is contained in:
Manuel Friedli 2017-07-08 17:26:02 +02:00
parent bb773afb9d
commit 8efa7d7d6f
6 changed files with 45 additions and 7 deletions

View file

@ -0,0 +1,21 @@
diff --git a/config.toml.example b/config.toml.example
index 3a987f9..801d192 100644
--- a/config.toml.example
+++ b/config.toml.example
@@ -1,6 +1,6 @@
# Example Gitaly configuration file
-socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
+socket_path = "/run/gitlab/sockets/gitaly.socket"
# # Optional: listen on a TCP socket. This is insecure (no authentication)
# listen_addr = "localhost:9999"
@@ -12,7 +12,7 @@ socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
[[storage]]
name = "default"
-path = "/home/git/repositories"
+path = "/var/lib/git/repositories"
# # You can optionally configure more storages for this Gitaly instance to serve up
#

View file

@ -0,0 +1,8 @@
CONFIGFILE=/etc/gitlab/gitaly-config.toml
RUNAS_USER=git
RUNAS_GROUP=${RUNAS_USER}
LOGFILE=/var/log/gitlab/gitlab-gitaly.log
# This must match the setting in /etc/gitlab/gitaly-config.toml
# If not using a socket, simply comment out or delete the next line.
SOCKETDIR=/run/gitlab/sockets

View file

@ -4,7 +4,7 @@ start() {
ebegin "Starting gitlab-gitaly"
checkpath -f -m 640 -o ${RUNAS_USER}:${RUNAS_GROUP} ${LOGFILE}
[ -z "${SOCKETDIR}" ] || checkpath -d -m 755 -o ${RUNAS_USER}:${RUNAS_GROUP} ${SOCKETDIR}
[ -z "${SOCKETDIR}" ] || checkpath -d -m 700 -o ${RUNAS_USER}:${RUNAS_GROUP} ${SOCKETDIR}
start-stop-daemon --start --exec /usr/bin/gitlab-gitaly --pidfile /run/gitlab-gitaly.pid \
--make-pidfile --background --user ${RUNAS_USER}:${RUNAS_GROUP} --stdout "${LOGFILE}" --stderr "${LOGFILE}" \