From 10daa3a691eac945ad03833f3dfed6a30a8f7466 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Mon, 10 Feb 2025 14:45:47 +0100 Subject: [PATCH] Update install.sh --- install.sh | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/install.sh b/install.sh index 3fe01078..2bb7801c 100644 --- a/install.sh +++ b/install.sh @@ -1536,6 +1536,8 @@ install_python312() { if command -v python3.12 &> /dev/null; then #echo "Python 3.12 is already installed. Version: $(python3.12 --version)" echo "Installing python3.12-venv.." + + # install venv only! debug_log $PACKAGE_MANAGER install -y software-properties-common @@ -1562,7 +1564,7 @@ EOF if [ "$OS" == "ubuntu" ]; then debug_log add-apt-repository -y ppa:deadsnakes/ppa elif [ "$OS" == "debian" ]; then - echo "Debian detected, adding backports repository." + echo "adding backports repository." wget -qO- https://pascalroeleven.nl/deb-pascalroeleven.gpg | sudo tee /etc/apt/keyrings/deb-pascalroeleven.gpg &> /dev/null cat < /dev/null + debug_log $PACKAGE_MANAGER update - debug_log $PACKAGE_MANAGER install -y python3.12 python3.12-venv - - if python3.12 --version &> /dev/null; then - : - else - radovan 1 "Python 3.12 installation failed." - fi - fi + debug_log $PACKAGE_MANAGER install -y python3.12 # venv is included! + + fi + + + +if python3.12 --version &> /dev/null; then + : +else + radovan 1 "Python 3.12 installation failed." +fi + + fi + } configure_coraza() {