From 5927c9de2e413f06f332e4c78c41c20bdde494d6 Mon Sep 17 00:00:00 2001 From: "Justin Terry (VM)" Date: Wed, 21 Feb 2018 06:42:05 -0800 Subject: [PATCH] Adding checks before writiting multiple entries to files on rerun --- ubuntu/18.04/install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ubuntu/18.04/install.sh b/ubuntu/18.04/install.sh index f0305f9..f2dc052 100644 --- a/ubuntu/18.04/install.sh +++ b/ubuntu/18.04/install.sh @@ -11,8 +11,12 @@ # Update our machine to the latest code if we need to. # +# Check if we have the bionic-proposed sources list +sudo cat /etc/apt/sources.list | grep bionic-proposed > /dev/null +if [ "$?" == "1" ]; then sudo bash -c 'echo "deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main multiverse universe" >> /etc/apt/sources.list < /dev/null +if [ "$?" == "1" ]; then sudo bash -c 'echo "blacklist vmw_vsock_vmci_transport" >> /etc/modprobe.d/blacklist.conf < /dev/null +if [ "$?" == "1" ]; then sudo bash -c 'echo "hv_sock" >> /etc/modules </etc/polkit-1/localauthority.conf.d/02-allow-colord.conf <