This prevents the script from filling up /etc/apt/sources.list with more than one deb line which cause a warning when updating.
Bruno Bigras authored on 2013/04/30 21:54:22... | ... |
@@ -11,7 +11,7 @@ Vagrant::Config.run do |config| |
11 | 11 |
config.vm.box_url = BOX_URI |
12 | 12 |
# Add docker PPA key to the local repository and install docker |
13 | 13 |
pkg_cmd = "apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys #{PPA_KEY}; " |
14 |
- pkg_cmd << "echo 'deb http://ppa.launchpad.net/dotcloud/lxc-docker/ubuntu precise main' >>/etc/apt/sources.list; " |
|
14 |
+ pkg_cmd << "echo 'deb http://ppa.launchpad.net/dotcloud/lxc-docker/ubuntu precise main' >/etc/apt/sources.list.d/lxc-docker.list; " |
|
15 | 15 |
pkg_cmd << "apt-get update -qq; apt-get install -q -y lxc-docker" |
16 | 16 |
if ARGV.include?("--provider=aws".downcase) |
17 | 17 |
# Add AUFS dependency to amazon's VM |