summaryrefslogtreecommitdiff
path: root/user/gitlab-runner/gitlab-runner.pre-install
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2020-06-19 22:56:22 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2020-06-19 22:56:22 +0000
commitc3ad661174e3f770b100812c6075f2ca092e9c2a (patch)
tree3dfcf540eb4c49e05d1b97de4492f9e00bec4db0 /user/gitlab-runner/gitlab-runner.pre-install
parentb39942321d371aaa6fa453bf06cb55089bbe7444 (diff)
parentc4d87ab64fb1a3a1a89e6e0cb8d4b7291e511c1d (diff)
downloadpackages-c3ad661174e3f770b100812c6075f2ca092e9c2a.tar.gz
packages-c3ad661174e3f770b100812c6075f2ca092e9c2a.tar.bz2
packages-c3ad661174e3f770b100812c6075f2ca092e9c2a.tar.xz
packages-c3ad661174e3f770b100812c6075f2ca092e9c2a.zip
Merge branch 'gitlab-runner' into 'master'
user/gitlab-runner: new package See merge request adelie/packages!467
Diffstat (limited to 'user/gitlab-runner/gitlab-runner.pre-install')
-rw-r--r--user/gitlab-runner/gitlab-runner.pre-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/user/gitlab-runner/gitlab-runner.pre-install b/user/gitlab-runner/gitlab-runner.pre-install
new file mode 100644
index 000000000..9ef046f29
--- /dev/null
+++ b/user/gitlab-runner/gitlab-runner.pre-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+groupadd -r gitlab-runner 2>/dev/null
+useradd -c gitlab-runner -s /sbin/nologin -g gitlab-runner \
+ -d /var/lib/gitlab-runner -r gitlab-runner 2>/dev/null
+
+exit 0