From 5c1d5acc57b1dcedee09cdc9e0e75a3d6fe56099 Mon Sep 17 00:00:00 2001 From: root <root@givry.it-innovation.soton.ac.uk> Date: Sun, 3 Jun 2018 00:03:33 +0100 Subject: [PATCH] added gitlab-runner sudoer --- scripts/test/install-git-runner.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/test/install-git-runner.sh b/scripts/test/install-git-runner.sh index d1a8537..122915a 100755 --- a/scripts/test/install-git-runner.sh +++ b/scripts/test/install-git-runner.sh @@ -4,6 +4,7 @@ apt-get update wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 chmod +x /usr/local/bin/gitlab-runner useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash +echo "gitlab-runner ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner gitlab-runner start @@ -11,4 +12,4 @@ gitlab-runner start gitlab-runner register -n --url https://gitlab.it-innovation.soton.ac.uk/ --r sN3wMQp8EiAv7znNwG5s --executor shell --locked true --name ${HOSTNAME} --description ${HOSTNAME} --run-untagged true apt-get -y install python3 python3-pip python-influxdb -update-alternatives --install /usr/bin/python python /usr/bin/python3 10 \ No newline at end of file +update-alternatives --install /usr/bin/python python /usr/bin/python3 10 -- GitLab