Commit f902ddf1 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

gitlab-runner: Run as "gitlab-runner".

Until now 'gitlab-runner' was running as root, ouch!

* hacky/services-gitlab.scm (gitlab-runner-shepherd-service): Pass
  #:user, #:group, and #:log-file to 'fork+exec-command'.
parent a8c59c2d
......@@ -106,7 +106,10 @@
"run" "--config" config-file)))
(setenv "SSL_CERT_DIR" certs-dir)
(if (register-runner)
(fork+exec-command command)
(fork+exec-command command
#:user "gitlab-runner"
#:group "gitlab-runner"
#:log-file "/var/log/gitlab-runner.log")
#f)))))
(stop #~(make-kill-destructor)))))))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment