[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] Run adduser in sudo.

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Feb 3 11:10:15 GMT 2022



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


Commits:
03721ced by Jelmer Vernooij at 2022-02-03T12:09:52+01:00
Run adduser in sudo.

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

- - - - -


2 changed files:

- bin/janitor_setup_worker.sh
- hosts/common/etc/sudoers.d/jenkins


Changes:

=====================================
bin/janitor_setup_worker.sh
=====================================
@@ -8,7 +8,7 @@ DEBUG=true
 . /srv/jenkins/bin/common-functions.sh
 common_init "$@"
 
-adduser jenkins docker
+sudo adduser jenkins docker
 docker pull eu.gcr.io/debian-janitor/worker
 
 # vim: set sw=0 noet :


=====================================
hosts/common/etc/sudoers.d/jenkins
=====================================
@@ -45,7 +45,7 @@ jenkins ALL=  \
 	/bin/mkdir -p /media/*, \
 	/bin/mkdir -p /srv/fakeroot-foreign/*, /bin/chown -R jenkins\:jenkins /srv/fakeroot-foreign/*, \
 	/usr/bin/guestmount *, \
-	/bin/cp -rv /media/*, \
+	/bin/cp -rv /media/*, /usr/sbin/adduser jenkins docker \
 	/bin/chown -R jenkins\:jenkins /var/lib/jenkins/jobs/*, \
 	SETENV: NOPASSWD: /usr/sbin/pbuilder *, \
 	SETENV: NOPASSWD: /usr/bin/timeout -k ??.?h ??h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder *, \



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/03721cedf231f40cee6271e47c1d1a657be46166
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/20220203/88981708/attachment.htm>


More information about the Qa-jenkins-scm mailing list