diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-11-28 12:07:11 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-11-28 12:07:11 +0100 |
commit | 5b7efc9513726b80e03da1960353abcd18b98682 (patch) | |
tree | e0ec6bd58f641a58ec1e3a295efafdef34c137c8 /hosts/profitbricks-build6-amd64/etc | |
parent | 832972bda524feb9454bdfe0c980e4167da79ba2 (diff) | |
download | jenkins.debian.net-5b7efc9513726b80e03da1960353abcd18b98682.tar.xz |
reproducible: don't fail if systemd ain't running
Diffstat (limited to 'hosts/profitbricks-build6-amd64/etc')
-rwxr-xr-x | hosts/profitbricks-build6-amd64/etc/rc.local | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/hosts/profitbricks-build6-amd64/etc/rc.local b/hosts/profitbricks-build6-amd64/etc/rc.local index 32343784..f1e902d2 100755 --- a/hosts/profitbricks-build6-amd64/etc/rc.local +++ b/hosts/profitbricks-build6-amd64/etc/rc.local @@ -13,15 +13,19 @@ echo "$(date) - system was rebooted" | mail -s "$(hostname -f) rebooted" root +# disable systemd date services (and don't fail if systemd ain't running) systemctl disable systemd-timesyncd systemctl disable systemd-timedated -systemctl stop systemd-timesyncd -systemctl stop systemd-timedated +systemctl stop systemd-timesyncd || true +systemctl stop systemd-timedated || true +# set correct date ntpdate -b de.pool.ntp.org +# set fake date date --set="+398 days +6 hours + 23 minutes" -echo "$(date) - system is running in the future now" | mail -s "$(hostname -f) in the future" root # 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) - system is running in the future now" | mail -s "$(hostname -f) in the future" root exit 0 |