From 0e42832183bdbcee2e2f78abbf646cdfcea12eb7 Mon Sep 17 00:00:00 2001 From: Will Maier Date: Wed, 24 Apr 2013 15:22:49 +0000 Subject: [PATCH] Add a task to update apt-get on boot in ubuntu. --- definitions/.ubuntu/update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/definitions/.ubuntu/update.sh b/definitions/.ubuntu/update.sh index e7829d6f9..80e8dd3f9 100644 --- a/definitions/.ubuntu/update.sh +++ b/definitions/.ubuntu/update.sh @@ -5,3 +5,11 @@ apt-get -y upgrade # ensure the correct kernel headers are installed apt-get -y install linux-headers-$(uname -r) + +# update package index on boot +cat < /etc/init/refresh-apt.conf +description "update package index" +start on networking +task +exec /usr/bin/apt-get update +EOF