[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: use "cat | sudo tee" instead of "sudo cat"

Holger Levsen gitlab at salsa.debian.org
Thu Apr 18 10:18:21 BST 2019



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


Commits:
f9ae8188 by Holger Levsen at 2019-04-18T09:18:10Z
reproducible Debian: use "cat | sudo tee" instead of "sudo cat"

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

- - - - -


1 changed file:

- update_jdn.sh


Changes:

=====================================
update_jdn.sh
=====================================
@@ -631,7 +631,7 @@ else
 	sudo cp jenkins-nodes-home/authorized_keys /var/lib/jenkins/.ssh/authorized_keys
 fi
 if [ -f jenkins-nodes-home/authorized_keys.$HOSTNAME ] ; then
-	sudo cat jenkins-nodes-home/authorized_keys.$HOSTNAME >> /var/lib/jenkins/.ssh/authorized_keys
+	cat jenkins-nodes-home/authorized_keys.$HOSTNAME | sudo tee -a /var/lib/jenkins/.ssh/authorized_keys
 fi
 sudo -u jenkins cp jenkins-home/ssh_config.in /var/lib/jenkins/.ssh/config
 nodes/gen_ssh_config | sudo -u jenkins tee -a /var/lib/jenkins/.ssh/config > /dev/null



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/f9ae81881edc76b99eb2f9344258d3e70f910212
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/20190418/bdc96000/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list