From: Frank Brehm Date: Thu, 19 Aug 2021 05:45:25 +0000 (+0200) Subject: committing changes in /etc made by "/usr/bin/apt full-upgrade -y" X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=06ec0d4ed7b6bcbb1900f883e5cd8fcfa29abb61;p=config%2Fbruni%2Fetc-mint-new1.git committing changes in /etc made by "/usr/bin/apt full-upgrade -y" Package changes: -cargo 0.47.0-1~exp1ubuntu1~20.04.1 amd64 +cargo 0.52.0-0ubuntu1~20.04.1 amd64 -libstd-rust-dev 1.47.0+dfsg1+llvm-1ubuntu1~20.04.1 amd64 +libstd-rust-1.51 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2 amd64 +libstd-rust-dev 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2 amd64 -rust-gdb 1.47.0+dfsg1+llvm-1ubuntu1~20.04.1 all -rustc 1.47.0+dfsg1+llvm-1ubuntu1~20.04.1 amd64 +rust-gdb 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2 all +rustc 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2 amd64 -update-notifier-common 3.192.30.8 all +update-notifier-common 3.192.30.9 all --- diff --git a/cron.weekly/update-notifier-common b/cron.weekly/update-notifier-common index 07b890c..0e87107 100755 --- a/cron.weekly/update-notifier-common +++ b/cron.weekly/update-notifier-common @@ -4,5 +4,12 @@ set -e [ -x /usr/lib/ubuntu-release-upgrader/release-upgrade-motd ] || exit 0 -# Check to see whether there is a new version of Ubuntu available -/usr/lib/ubuntu-release-upgrader/release-upgrade-motd +sleep_then_check() { + # Sleep for up to an hour to spread the load of checking for updates on + # the Ubuntu infrastructure + sleep $(shuf -i 1-3600 -n 1) + # Check to see whether there is a new version of Ubuntu available + /usr/lib/ubuntu-release-upgrader/release-upgrade-motd +} + +sleep_then_check &