diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-07 01:35:01 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-07 01:35:01 +0200 |
commit | 098a7d6efbf465ee8971a920cb373a8e41dc6f58 (patch) | |
tree | f8b6d313b5fad179236e71d6d553720f0bc99897 /hosts | |
parent | 550638c47d7be6850731a9c6f228e41d0b70efad (diff) | |
download | jenkins.debian.net-098a7d6efbf465ee8971a920cb373a8e41dc6f58.tar.xz |
modify rc.local on hb0|bpi0|profitbricks-build2 to run the system 400 days in the future (so far only manually deployed on bpi0)
Diffstat (limited to 'hosts')
-rwxr-xr-x | hosts/bpi0-armhf-rb/etc/rc.local | 7 | ||||
-rwxr-xr-x | hosts/hb0-armhf-rb/etc/rc.local | 7 | ||||
-rwxr-xr-x | hosts/profitbricks-build2-amd64/etc/rc.local | 7 |
3 files changed, 21 insertions, 0 deletions
diff --git a/hosts/bpi0-armhf-rb/etc/rc.local b/hosts/bpi0-armhf-rb/etc/rc.local index 9493d09d..d98b2916 100755 --- a/hosts/bpi0-armhf-rb/etc/rc.local +++ b/hosts/bpi0-armhf-rb/etc/rc.local @@ -11,6 +11,13 @@ # # By default this script does nothing. +systemctl disable systemd-timesyncd +systemctl disable systemd-timedated +systemctl stop systemd-timesyncd +systemctl stop systemd-timedated +ntpdate -b us.pool.ntp.org echo "$(date) - system was rebooted" | mail -s "$(hostname -f) rebooted" root +date --set="+400 days" +echo "$(date) - system is running in the future now" | mail -s "$(hostname -f) in the future" root exit 0 diff --git a/hosts/hb0-armhf-rb/etc/rc.local b/hosts/hb0-armhf-rb/etc/rc.local index 9493d09d..d98b2916 100755 --- a/hosts/hb0-armhf-rb/etc/rc.local +++ b/hosts/hb0-armhf-rb/etc/rc.local @@ -11,6 +11,13 @@ # # By default this script does nothing. +systemctl disable systemd-timesyncd +systemctl disable systemd-timedated +systemctl stop systemd-timesyncd +systemctl stop systemd-timedated +ntpdate -b us.pool.ntp.org echo "$(date) - system was rebooted" | mail -s "$(hostname -f) rebooted" root +date --set="+400 days" +echo "$(date) - system is running in the future now" | mail -s "$(hostname -f) in the future" root exit 0 diff --git a/hosts/profitbricks-build2-amd64/etc/rc.local b/hosts/profitbricks-build2-amd64/etc/rc.local index 9493d09d..7940adf5 100755 --- a/hosts/profitbricks-build2-amd64/etc/rc.local +++ b/hosts/profitbricks-build2-amd64/etc/rc.local @@ -11,6 +11,13 @@ # # By default this script does nothing. +systemctl disable systemd-timesyncd +systemctl disable systemd-timedated +systemctl stop systemd-timesyncd +systemctl stop systemd-timedated +ntpdate -b de.pool.ntp.org echo "$(date) - system was rebooted" | mail -s "$(hostname -f) rebooted" root +date --set="+400 days" +echo "$(date) - system is running in the future now" | mail -s "$(hostname -f) in the future" root exit 0 |