summaryrefslogtreecommitdiffstats
path: root/hosts/rpi2c-armhf-rb/etc
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-04-28 20:13:35 +0200
committerHolger Levsen <holger@layer-acht.org>2017-04-29 14:12:38 +0200
commit48193a0f7ab8491e8290777e1cfe0239d82b1034 (patch)
tree44e692a8d9e3e471a4d61085424fb8b8d1eea298 /hosts/rpi2c-armhf-rb/etc
parentbcd5e09431655232f6e9fb28310e3aa2477a70ff (diff)
downloadjenkins.debian.net-48193a0f7ab8491e8290777e1cfe0239d82b1034.tar.xz
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@layer-acht.org>
Diffstat (limited to 'hosts/rpi2c-armhf-rb/etc')
-rwxr-xr-xhosts/rpi2c-armhf-rb/etc/rc.local3
1 files changed, 0 insertions, 3 deletions
diff --git a/hosts/rpi2c-armhf-rb/etc/rc.local b/hosts/rpi2c-armhf-rb/etc/rc.local
index c5caa74c..23952e35 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
}