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 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=7cfbd9ae4817634d7f403a1905120473a9af0311;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)