[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible: Ensure authorized_keys are processed in the correct

Vagrant Cascadian gitlab at salsa.debian.org
Tue Nov 5 00:55:26 GMT 2019



Vagrant Cascadian pushed to branch master at Debian QA / jenkins.debian.net


Commits:
0316d461 by Vagrant Cascadian at 2019-11-05T00:54:29Z
reproducible: Ensure authorized_keys are processed in the correct
directory regardless of where it is run from.

- - - - -


1 changed file:

- update_jdn.sh


Changes:

=====================================
update_jdn.sh
=====================================
@@ -133,7 +133,8 @@ u_shell['jenkins-adm']='/bin/bash'
 # get the users out of the user_host_groups array's index
 users=$(for i in ${!user_host_groups[@]}; do echo ${i%,*} ; done | sort -u)
 
-( $UP2DATE && [ -z "$(find authorized_keys -newer $0)" ] ) || for user in ${users}; do
+( $UP2DATE && [ -z "$(find $BASEDIR/authorized_keys -newer $0)" ] ) || for user in ${users}; do
+	cd $BASEDIR
 	# -v is a bashism to check for set variables, used here to see if this user is active on this host
 	if [ ! -v user_host_groups["$user","$HOSTNAME"] ] && [ ! -v user_host_groups["$user",'*'] ] && [ ! -v user_host_groups["$user","$DPKG_ARCH"] ] ; then
 		continue



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/0316d46185dd883a7c453148341b9b10d8aa6708

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/0316d46185dd883a7c453148341b9b10d8aa6708
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/20191105/07a6ad6d/attachment.html>


More information about the Qa-jenkins-scm mailing list