Skip to content

Commit

Permalink
Merge pull request #39 from whilp/update-on-boot
Browse files Browse the repository at this point in the history
Add a task to update apt-get on boot in ubuntu.
  • Loading branch information
juliandunn committed Jun 25, 2013
2 parents 4a52943 + 0e42832 commit fc2c8d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions definitions/.ubuntu/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF > /etc/init/refresh-apt.conf
description "update package index"
start on networking
task
exec /usr/bin/apt-get update
EOF

0 comments on commit fc2c8d0

Please sign in to comment.