dev-vcs/gitlab-workhorse:
fix pulling over HTTP(S) by fixing the path to gitlab-workhorse-secret Package-Manager: portage-2.2.28
This commit is contained in:
parent
7b64453fe3
commit
722091b86d
5 changed files with 79 additions and 1 deletions
12
dev-vcs/gitlab-workhorse/files/gitlab-workhorse-0.8.2.conf
Normal file
12
dev-vcs/gitlab-workhorse/files/gitlab-workhorse-0.8.2.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
AUTH_BACKEND=http://localhost:8080
|
||||
LISTEN_ADDR=localhost:8181
|
||||
LISTEN_NETWORK=tcp
|
||||
LISTEN_UMASK=022
|
||||
PPROF_LISTEN_ADDRESS=
|
||||
SECRET_PATH=/opt/gitlab/.gitlab_workhorse_secret
|
||||
|
||||
GIT_REPO_PATH=/var/lib/git/repositories
|
||||
|
||||
RUNAS_USER=git
|
||||
RUNAS_GROUP=${RUNAS_USER}
|
||||
LOGFILE=/var/log/gitlab/gitlab-workhorse.log
|
16
dev-vcs/gitlab-workhorse/files/gitlab-workhorse-0.8.2.init
Normal file
16
dev-vcs/gitlab-workhorse/files/gitlab-workhorse-0.8.2.init
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
start() {
|
||||
ebegin "Starting gitlab-workhorse"
|
||||
start-stop-daemon --start --exec /usr/bin/gitlab-workhorse --pidfile /run/gitlab-workhorse.pid \
|
||||
--make-pidfile --background --user ${RUNAS_USER}:${RUNAS_GROUP} --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
|
||||
-- -authBackend=${AUTH_BACKEND} -listenAddr=${LISTEN_ADDR} -listenNetwork=${LISTEN_NETWORK} -listenUmask=${LISTEN_UMASK} \
|
||||
-pprofListenAddr=${PPROF_LISTEN_ADDR} -secretPath=${SECRET_PATH} ${GIT_REPO_PATH}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping gitlab-workhorse"
|
||||
start-stop-daemon --stop --exec /usr/bin/gitlab-workhorse --pidfile /run/gitlab-workhorse.pid --user ${RUNAS_USER}:${RUNAS_GROUP}
|
||||
eend $?
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue