Bug 131 - Disable auto updates in Ubuntu in SO container to prevent corruption of... 98/798/1 v1.0.2
authorvelandy <rajesh.velandy@riftio.com>
Thu, 15 Dec 2016 22:09:55 +0000 (22:09 +0000)
committervelandy <rajesh.velandy@riftio.com>
Thu, 15 Dec 2016 22:09:55 +0000 (22:09 +0000)
Committer: velandy <rajesh.velandy@riftio.com>
Signed-off-by: velandy <rajesh.velandy@riftio.com>
BUILD.sh

index 4d9f36a..c919206 100755 (executable)
--- 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)