From 839b5135c3f72f7051b186cdf97ead55711f25a5 Mon Sep 17 00:00:00 2001 From: velandy Date: Thu, 15 Dec 2016 22:09:55 +0000 Subject: [PATCH] Bug 131 - Disable auto updates in Ubuntu in SO container to prevent corruption of updated packages Committer: velandy Signed-off-by: velandy --- BUILD.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/BUILD.sh b/BUILD.sh index 4d9f36a8..c9192060 100755 --- a/BUILD.sh +++ b/BUILD.sh @@ -126,6 +126,17 @@ fi ############################################################################### # Main block +# Disable apt-daily.service and apt-daily.timer + +DAILY_TIMER='apt-daily.timer' +DAILY_SERVICE='apt-daily.service' +if [ $(systemctl is-active $DAILY_TIMER) = "active" ] +then + systemctl stop $DAILY_TIMER + systemctl disable $DAILY_TIMER + systemctl disable $DAILY_SERVICE +fi + # must be run from the top of a workspace cd $(dirname $0) -- 2.25.1