From: velandy Date: Thu, 15 Dec 2016 22:09:55 +0000 (+0000) Subject: Bug 131 - Disable auto updates in Ubuntu in SO container to prevent corruption of... X-Git-Tag: v1.0.2^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=839b5135c3f72f7051b186cdf97ead55711f25a5;p=osm%2FSO.git Bug 131 - Disable auto updates in Ubuntu in SO container to prevent corruption of updated packages Committer: velandy Signed-off-by: velandy --- 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)