From 4e9f1b1a7b3985ac557144eebda910d1dc4487a9 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Wed, 4 Mar 2020 17:01:48 -0500 Subject: [PATCH] Make Ubuntu 18 defautl to python 3 --- setup/so-functions | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup/so-functions b/setup/so-functions index a965b57d4..6f1f79b86 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1049,6 +1049,12 @@ EOF ADDUSER=useradd DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade + if [ $OSVER != "xenial" ]; then + + # Switch to Python 3 as default is this is not xenial + update-alternatives --install /usr/bin/python python /usr/bin/python3.6 10 + + fi # Add the pre-requisites for installing docker-ce apt-get -y install ca-certificates curl software-properties-common apt-transport-https openssl jq >> $SETUPLOG 2>&1