From 7979815990401ab272e42e17f511bcc1b72844d0 Mon Sep 17 00:00:00 2001 From: akanealw Date: Fri, 12 Apr 2024 12:04:11 -0500 Subject: [PATCH] added command to symlink python to python3 --- debian/debian-essentials.sh | 6 ++++++ ubuntu/ubuntu-essentials.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/debian/debian-essentials.sh b/debian/debian-essentials.sh index 8e0f449..4b2c96a 100755 --- a/debian/debian-essentials.sh +++ b/debian/debian-essentials.sh @@ -46,6 +46,12 @@ fi # remove os prober apt-get remove os-prober -y > /dev/null 2>&1 +# symlink python3 to python +if [[ ! -f /usr/bin/python ]] + then + ln /usr/bin/python3 /usr/bin/python +fi + # update and upgrade apt-get update apt-get upgrade -y diff --git a/ubuntu/ubuntu-essentials.sh b/ubuntu/ubuntu-essentials.sh index 56a774f..bca353f 100755 --- a/ubuntu/ubuntu-essentials.sh +++ b/ubuntu/ubuntu-essentials.sh @@ -17,6 +17,12 @@ fi # remove os prober apt-get remove os-prober -y +# symlink python3 to python +if [[ ! -f /usr/bin/python ]] + then + ln /usr/bin/python3 /usr/bin/python +fi + # update and upgrade apt-get update apt-get upgrade -y