[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] init_node: install sudo if its not installed already

Holger Levsen gitlab at salsa.debian.org
Thu Apr 30 19:06:12 BST 2020



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
f33137c2 by Holger Levsen at 2020-04-30T20:06:06+02:00
init_node: install sudo if its not installed already

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- init_node


Changes:

=====================================
init_node
=====================================
@@ -28,6 +28,7 @@ adduser --system --shell /bin/bash --home /var/lib/jenkins --ingroup jenkins --d
 addgroup --system jenkins-adm
 adduser --system --shell /bin/bash --home /home/jenkins-adm --ingroup jenkins-adm --disabled-login jenkins-adm
 usermod -G jenkins jenkins-adm
+which sudo || apt-get install -y sudo
 echo '%jenkins-adm ALL= NOPASSWD: ALL' > /etc/sudoers.d/jenkins-adm # will be overwritten later
 grep -q buster-backports /etc/apt/sources.list || echo "deb http://deb.debian.org/debian/ buster-backports main contrib non-free" >> /etc/apt/sources.list
 chown jenkins-adm.jenkins-adm /home/jenkins-adm



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/f33137c25a99b22c42b1c5d67326622092f3b7a3

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/f33137c25a99b22c42b1c5d67326622092f3b7a3
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200430/680cddfb/attachment.html>


More information about the Qa-jenkins-scm mailing list