[Qa-jenkins-scm] [jenkins.debian.net] 01/01: fixup 48193a0f, use sudo for update_jdn.sh: rework disabling dsa-check-packages
Holger Levsen
holger at layer-acht.org
Sat Apr 29 12:19:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 4301e9feb5456a4c3b5557da3edc466a73560b1c
Author: Holger Levsen <holger at layer-acht.org>
Date: Sat Apr 29 14:19:25 2017 +0200
fixup 48193a0f, use sudo for update_jdn.sh: rework disabling dsa-check-packages
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
update_jdn.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/update_jdn.sh b/update_jdn.sh
index e0c4b3a..a816275 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -35,15 +35,15 @@ set_correct_date() {
disable_dsa_check_packages() {
# disable check for outdated packages as in the future (like this)
# packages from security.d.o will appear outdated always…
- echo -e "#!/bin/sh\n# disabled dsa-check by update_jdn.sh\nexit 0" > /usr/local/bin/dsa-check-packages
- chmod a+rx /usr/local/bin/dsa-check-packages
+ echo -e "#!/bin/sh\n# disabled dsa-check by update_jdn.sh\nexit 0" | sudo tee /usr/local/bin/dsa-check-packages
+ sudo chmod a+rx /usr/local/bin/dsa-check-packages
# FIXME: remove the repair of /bin/true when all hosts has been
# updated
# ln -s /bin/true /usr/local/bin/dsa-check-packages was used which
# broke /bin/true by overwriting it with the perl script dsa-check-packages
if grep -q '/usr/bin/perl' /bin/true ; then
- apt-get install --reinstall coreutils
+ sudo apt-get install --reinstall coreutils
fi
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list