summaryrefslogtreecommitdiff
path: root/user/gitlab-runner/gitlab-runner.pre-install
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2020-06-15 01:10:53 -0500
committerMax Rees <maxcrees@me.com>2020-06-15 01:10:53 -0500
commit7205748706663099aa36c06aa0c243cb1632db3d (patch)
treed4417c3cf1634d8b90b11c7deda25335745e5344 /user/gitlab-runner/gitlab-runner.pre-install
parent4e53c51f591cbd62817c797c10d240c008182ab3 (diff)
downloadpackages-7205748706663099aa36c06aa0c243cb1632db3d.tar.gz
packages-7205748706663099aa36c06aa0c243cb1632db3d.tar.bz2
packages-7205748706663099aa36c06aa0c243cb1632db3d.tar.xz
packages-7205748706663099aa36c06aa0c243cb1632db3d.zip
user/gitlab-runner: new package
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