summaryrefslogtreecommitdiffstats
path: root/boot/dcae2_install.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-07-31 14:41:01 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-07-31 14:41:01 -0700
commitf43a362f33f8a0ed172b22a99ce781dd3b008c21 (patch)
tree9a13e518c2d01886279424fe903f2a35f921262e /boot/dcae2_install.sh
parenta253c609e89e75c49a4ff3524de7268b2c051d2c (diff)
Made docker install agnostic to ubuntu version
This is the first step toward gracefully upgrading all VMs to ubuntu 16.04. Change-Id: If2b7c57b43165bd99984e76eba5f29fd8bfc6df0 Issue-ID: INT-606 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'boot/dcae2_install.sh')
-rwxr-xr-xboot/dcae2_install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/dcae2_install.sh b/boot/dcae2_install.sh
index 05722c36..adf619a5 100755
--- a/boot/dcae2_install.sh
+++ b/boot/dcae2_install.sh
@@ -63,7 +63,7 @@ mv /opt/dcae2_serv.sh /etc/init.d
update-rc.d dcae2_serv.sh defaults
# Download and install docker-engine and docker-compose
-echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
+echo "deb https://apt.dockerproject.org/repo ubuntu-$(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y "linux-image-extra-$(uname -r)" linux-image-extra-virtual jq
apt-get install -y --allow-unauthenticated docker-engine