diff options
Diffstat (limited to 'hosts')
-rwxr-xr-x | hosts/profitbricks-build4-amd64/etc/rc.local | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hosts/profitbricks-build4-amd64/etc/rc.local b/hosts/profitbricks-build4-amd64/etc/rc.local index 8879125c..7d5bcba9 100755 --- a/hosts/profitbricks-build4-amd64/etc/rc.local +++ b/hosts/profitbricks-build4-amd64/etc/rc.local @@ -20,4 +20,19 @@ cd /srv/workspace/varlibschroot || exit 1 mkdir -p mount session union unpack mkdir -p union/overlay union/underlay +# 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 || 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" +# 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 + exit 0 |