[Qa-jenkins-scm] [jenkins.debian.net] 01/01: rc.local/update_jdn.sh: rework disabling dsa-check-packages

Holger Levsen holger at layer-acht.org
Sat Apr 29 12:14:21 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 48193a0f7ab8491e8290777e1cfe0239d82b1034
Author: Alexander Couzens <lynxis at fe80.eu>
Date:   Fri Apr 28 20:13:35 2017 +0200

    rc.local/update_jdn.sh: rework disabling dsa-check-packages
    
    When rc.local was executed, it disables dsa-check-packages via
    ln -sf /bin/true /usr/local/bin/dsa-check-packages which disables it.
    But when the next time update_jdn.sh run, update_jdn.sh overwrite /bin/true
    with the original dsa-check-packages perl script.
    All scripts which use /bin/true rather than a built-in (like bash) might
    fail if some packages are outdated.
    Disabling of dsa-check-packages is done now in update_jdn.sh, but after
    dsa-check-packages got overwritten. It's also now using a one line shell
    script instead of a symbolic link, which allows to add a comment.
    Also add temporary check if /bin/true is a perl script and repair it by
    reinstalling coreutils.
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 hosts/bbx15-armhf-rb/etc/rc.local             |  3 ---
 hosts/bpi0-armhf-rb/etc/rc.local              |  3 ---
 hosts/cb3a-armhf-rb/etc/rc.local              |  3 ---
 hosts/cbxi4a-armhf-rb/etc/rc.local            |  3 ---
 hosts/cbxi4b-armhf-rb/etc/rc.local            |  3 ---
 hosts/cbxi4pro0-armhf-rb/etc/rc.local         |  3 ---
 hosts/codethink-sled10-arm64/etc/rc.local     |  3 ---
 hosts/codethink-sled11-arm64/etc/rc.local     |  3 ---
 hosts/codethink-sled12-arm64/etc/rc.local     |  3 ---
 hosts/codethink-sled13-arm64/etc/rc.local     |  3 ---
 hosts/codethink-sled14-arm64/etc/rc.local     |  3 ---
 hosts/codethink-sled15-arm64/etc/rc.local     |  3 ---
 hosts/codethink-sled16-arm64/etc/rc.local     |  3 ---
 hosts/codethink-sled9-arm64/etc/rc.local      |  3 ---
 hosts/ff2a-armhf-rb/etc/rc.local              |  3 ---
 hosts/ff2b-armhf-rb/etc/rc.local              |  3 ---
 hosts/ff4a-armhf-rb/etc/rc.local              |  3 ---
 hosts/hb0-armhf-rb/etc/rc.local               |  3 ---
 hosts/jenkins-test-vm/etc/rc.local            |  3 ---
 hosts/jenkins/etc/rc.local                    |  3 ---
 hosts/jtk1a-armhf-rb/etc/rc.local             |  3 ---
 hosts/odu3a-armhf-rb/etc/rc.local             |  3 ---
 hosts/odxu4-armhf-rb/etc/rc.local             |  3 ---
 hosts/odxu4b-armhf-rb/etc/rc.local            |  3 ---
 hosts/odxu4c-armhf-rb/etc/rc.local            |  3 ---
 hosts/opi2a-armhf-rb/etc/rc.local             |  3 ---
 hosts/opi2b-armhf-rb/etc/rc.local             |  3 ---
 hosts/opi2c-armhf-rb/etc/rc.local             |  3 ---
 hosts/p64b-armhf-rb.debian.net/etc/rc.local   |  3 ---
 hosts/p64c-armhf-rb.debian.net/etc/rc.local   |  3 ---
 hosts/profitbricks-build1-amd64/etc/rc.local  |  3 ---
 hosts/profitbricks-build10-amd64/etc/rc.local |  3 ---
 hosts/profitbricks-build11-amd64/etc/rc.local |  3 ---
 hosts/profitbricks-build12-i386/etc/rc.local  |  3 ---
 hosts/profitbricks-build15-amd64/etc/rc.local |  3 ---
 hosts/profitbricks-build16-i386/etc/rc.local  |  3 ---
 hosts/profitbricks-build2-i386/etc/rc.local   |  3 ---
 hosts/profitbricks-build3-amd64/etc/rc.local  |  3 ---
 hosts/profitbricks-build4-amd64/etc/rc.local  |  3 ---
 hosts/profitbricks-build5-amd64/etc/rc.local  |  3 ---
 hosts/profitbricks-build6-i386/etc/rc.local   |  3 ---
 hosts/profitbricks-build7-amd64/etc/rc.local  |  3 ---
 hosts/profitbricks-build9-amd64/etc/rc.local  |  3 ---
 hosts/rpi2b-armhf-rb/etc/rc.local             |  3 ---
 hosts/rpi2c-armhf-rb/etc/rc.local             |  3 ---
 hosts/wbd0-armhf-rb/etc/rc.local              |  3 ---
 hosts/wbq0-armhf-rb/etc/rc.local              |  3 ---
 update_jdn.sh                                 | 17 +++++++++++++++++
 48 files changed, 17 insertions(+), 141 deletions(-)

diff --git a/hosts/bbx15-armhf-rb/etc/rc.local b/hosts/bbx15-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/bbx15-armhf-rb/etc/rc.local
+++ b/hosts/bbx15-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/bpi0-armhf-rb/etc/rc.local b/hosts/bpi0-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/bpi0-armhf-rb/etc/rc.local
+++ b/hosts/bpi0-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/cb3a-armhf-rb/etc/rc.local b/hosts/cb3a-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/cb3a-armhf-rb/etc/rc.local
+++ b/hosts/cb3a-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/cbxi4a-armhf-rb/etc/rc.local b/hosts/cbxi4a-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/cbxi4a-armhf-rb/etc/rc.local
+++ b/hosts/cbxi4a-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/cbxi4b-armhf-rb/etc/rc.local b/hosts/cbxi4b-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/cbxi4b-armhf-rb/etc/rc.local
+++ b/hosts/cbxi4b-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/cbxi4pro0-armhf-rb/etc/rc.local b/hosts/cbxi4pro0-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/cbxi4pro0-armhf-rb/etc/rc.local
+++ b/hosts/cbxi4pro0-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/codethink-sled10-arm64/etc/rc.local b/hosts/codethink-sled10-arm64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/codethink-sled10-arm64/etc/rc.local
+++ b/hosts/codethink-sled10-arm64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/codethink-sled11-arm64/etc/rc.local b/hosts/codethink-sled11-arm64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/codethink-sled11-arm64/etc/rc.local
+++ b/hosts/codethink-sled11-arm64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/codethink-sled12-arm64/etc/rc.local b/hosts/codethink-sled12-arm64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/codethink-sled12-arm64/etc/rc.local
+++ b/hosts/codethink-sled12-arm64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/codethink-sled13-arm64/etc/rc.local b/hosts/codethink-sled13-arm64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/codethink-sled13-arm64/etc/rc.local
+++ b/hosts/codethink-sled13-arm64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/codethink-sled14-arm64/etc/rc.local b/hosts/codethink-sled14-arm64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/codethink-sled14-arm64/etc/rc.local
+++ b/hosts/codethink-sled14-arm64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/codethink-sled15-arm64/etc/rc.local b/hosts/codethink-sled15-arm64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/codethink-sled15-arm64/etc/rc.local
+++ b/hosts/codethink-sled15-arm64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/codethink-sled16-arm64/etc/rc.local b/hosts/codethink-sled16-arm64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/codethink-sled16-arm64/etc/rc.local
+++ b/hosts/codethink-sled16-arm64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/codethink-sled9-arm64/etc/rc.local b/hosts/codethink-sled9-arm64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/codethink-sled9-arm64/etc/rc.local
+++ b/hosts/codethink-sled9-arm64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/ff2a-armhf-rb/etc/rc.local b/hosts/ff2a-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/ff2a-armhf-rb/etc/rc.local
+++ b/hosts/ff2a-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/ff2b-armhf-rb/etc/rc.local b/hosts/ff2b-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/ff2b-armhf-rb/etc/rc.local
+++ b/hosts/ff2b-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/ff4a-armhf-rb/etc/rc.local b/hosts/ff4a-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/ff4a-armhf-rb/etc/rc.local
+++ b/hosts/ff4a-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/hb0-armhf-rb/etc/rc.local b/hosts/hb0-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/hb0-armhf-rb/etc/rc.local
+++ b/hosts/hb0-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/jenkins-test-vm/etc/rc.local b/hosts/jenkins-test-vm/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/jenkins-test-vm/etc/rc.local
+++ b/hosts/jenkins-test-vm/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/jenkins/etc/rc.local b/hosts/jenkins/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/jenkins/etc/rc.local
+++ b/hosts/jenkins/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/jtk1a-armhf-rb/etc/rc.local b/hosts/jtk1a-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/jtk1a-armhf-rb/etc/rc.local
+++ b/hosts/jtk1a-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/odu3a-armhf-rb/etc/rc.local b/hosts/odu3a-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/odu3a-armhf-rb/etc/rc.local
+++ b/hosts/odu3a-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/odxu4-armhf-rb/etc/rc.local b/hosts/odxu4-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/odxu4-armhf-rb/etc/rc.local
+++ b/hosts/odxu4-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/odxu4b-armhf-rb/etc/rc.local b/hosts/odxu4b-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/odxu4b-armhf-rb/etc/rc.local
+++ b/hosts/odxu4b-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/odxu4c-armhf-rb/etc/rc.local b/hosts/odxu4c-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/odxu4c-armhf-rb/etc/rc.local
+++ b/hosts/odxu4c-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/opi2a-armhf-rb/etc/rc.local b/hosts/opi2a-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/opi2a-armhf-rb/etc/rc.local
+++ b/hosts/opi2a-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/opi2b-armhf-rb/etc/rc.local b/hosts/opi2b-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/opi2b-armhf-rb/etc/rc.local
+++ b/hosts/opi2b-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/opi2c-armhf-rb/etc/rc.local b/hosts/opi2c-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/opi2c-armhf-rb/etc/rc.local
+++ b/hosts/opi2c-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/p64b-armhf-rb.debian.net/etc/rc.local b/hosts/p64b-armhf-rb.debian.net/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/p64b-armhf-rb.debian.net/etc/rc.local
+++ b/hosts/p64b-armhf-rb.debian.net/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/p64c-armhf-rb.debian.net/etc/rc.local b/hosts/p64c-armhf-rb.debian.net/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/p64c-armhf-rb.debian.net/etc/rc.local
+++ b/hosts/p64c-armhf-rb.debian.net/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build1-amd64/etc/rc.local b/hosts/profitbricks-build1-amd64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build1-amd64/etc/rc.local
+++ b/hosts/profitbricks-build1-amd64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build10-amd64/etc/rc.local b/hosts/profitbricks-build10-amd64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build10-amd64/etc/rc.local
+++ b/hosts/profitbricks-build10-amd64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build11-amd64/etc/rc.local b/hosts/profitbricks-build11-amd64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build11-amd64/etc/rc.local
+++ b/hosts/profitbricks-build11-amd64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build12-i386/etc/rc.local b/hosts/profitbricks-build12-i386/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build12-i386/etc/rc.local
+++ b/hosts/profitbricks-build12-i386/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build15-amd64/etc/rc.local b/hosts/profitbricks-build15-amd64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build15-amd64/etc/rc.local
+++ b/hosts/profitbricks-build15-amd64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build16-i386/etc/rc.local b/hosts/profitbricks-build16-i386/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build16-i386/etc/rc.local
+++ b/hosts/profitbricks-build16-i386/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build2-i386/etc/rc.local b/hosts/profitbricks-build2-i386/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build2-i386/etc/rc.local
+++ b/hosts/profitbricks-build2-i386/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build3-amd64/etc/rc.local b/hosts/profitbricks-build3-amd64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build3-amd64/etc/rc.local
+++ b/hosts/profitbricks-build3-amd64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build4-amd64/etc/rc.local b/hosts/profitbricks-build4-amd64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build4-amd64/etc/rc.local
+++ b/hosts/profitbricks-build4-amd64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build5-amd64/etc/rc.local b/hosts/profitbricks-build5-amd64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build5-amd64/etc/rc.local
+++ b/hosts/profitbricks-build5-amd64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build6-i386/etc/rc.local b/hosts/profitbricks-build6-i386/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build6-i386/etc/rc.local
+++ b/hosts/profitbricks-build6-i386/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build7-amd64/etc/rc.local b/hosts/profitbricks-build7-amd64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build7-amd64/etc/rc.local
+++ b/hosts/profitbricks-build7-amd64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/profitbricks-build9-amd64/etc/rc.local b/hosts/profitbricks-build9-amd64/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/profitbricks-build9-amd64/etc/rc.local
+++ b/hosts/profitbricks-build9-amd64/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/rpi2b-armhf-rb/etc/rc.local b/hosts/rpi2b-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/rpi2b-armhf-rb/etc/rc.local
+++ b/hosts/rpi2b-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/rpi2c-armhf-rb/etc/rc.local b/hosts/rpi2c-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/rpi2c-armhf-rb/etc/rc.local
+++ b/hosts/rpi2c-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/wbd0-armhf-rb/etc/rc.local b/hosts/wbd0-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/wbd0-armhf-rb/etc/rc.local
+++ b/hosts/wbd0-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/hosts/wbq0-armhf-rb/etc/rc.local b/hosts/wbq0-armhf-rb/etc/rc.local
index c5caa74..23952e3 100755
--- a/hosts/wbq0-armhf-rb/etc/rc.local
+++ b/hosts/wbq0-armhf-rb/etc/rc.local
@@ -20,9 +20,6 @@ send_back_to_the_future() {
 	ntpdate -b de.pool.ntp.org
 	# set fake date
 	date --set="+398 days +6 hours + 23 minutes"
-	# disable check for outdated packages as in the future (like this)
-	# packages from security.d.o will appear outdated always…
-	ln -sf /bin/true /usr/local/bin/dsa-check-packages
 	# finally report success
 	echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 }
diff --git a/update_jdn.sh b/update_jdn.sh
index 73d8f65..e0c4b3a 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -32,6 +32,21 @@ set_correct_date() {
 		sudo ntpdate -b de.pool.ntp.org
 }
 
+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
+
+	# 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
+	fi
+}
+
 echo "--------------------------------------------"
 explain "$(date) - begin deployment update."
 
@@ -785,9 +800,11 @@ explain "$(date) - finished deployment."
 case $HOSTNAME in
 	# set time back to the future
 	profitbricks-build4-amd64|profitbricks-build5-amd64|profitbricks-build6-i386|profitbricks-build15-amd64|profitbricks-build16-i386)
+		disable_dsa_check_packages
 		sudo date --set="+398 days +6 hours + 23 minutes"
 		;;
 	codethink-sled9*|codethink-sled11*|codethink-sled13*|codethink-sled15*)
+		disable_dsa_check_packages
 		sudo date --set="+398 days +6 hours + 23 minutes"
 		;;
 	jenkins)

-- 
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