From 5fbd6f5b94ef67c70fc4bb5c13ab96b3df3b9591 Mon Sep 17 00:00:00 2001 From: John Van de Meulebrouck Brendgard Date: Sun, 28 Aug 2016 00:13:10 +0200 Subject: [PATCH] Do not run update and autoremove on all machines at the same time as seen in eduID --- global/post-tasks.d/099autoremove | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/global/post-tasks.d/099autoremove b/global/post-tasks.d/099autoremove index 2cc6996..74b0aa4 100755 --- a/global/post-tasks.d/099autoremove +++ b/global/post-tasks.d/099autoremove @@ -1,4 +1,6 @@ #!/bin/sh -apt-get -qq update -apt-get -qq -y autoremove +if (( $RANDOM % 20 == 0)); then + apt-get -qq update + apt-get -qq -y autoremove +fi