mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update install.sh
This commit is contained in:
parent
018634242d
commit
10daa3a691
33
install.sh
33
install.sh
@ -1536,6 +1536,8 @@ install_python312() {
|
|||||||
if command -v python3.12 &> /dev/null; then
|
if command -v python3.12 &> /dev/null; then
|
||||||
#echo "Python 3.12 is already installed. Version: $(python3.12 --version)"
|
#echo "Python 3.12 is already installed. Version: $(python3.12 --version)"
|
||||||
echo "Installing python3.12-venv.."
|
echo "Installing python3.12-venv.."
|
||||||
|
|
||||||
|
|
||||||
# install venv only!
|
# install venv only!
|
||||||
debug_log $PACKAGE_MANAGER install -y software-properties-common
|
debug_log $PACKAGE_MANAGER install -y software-properties-common
|
||||||
|
|
||||||
@ -1562,7 +1564,7 @@ EOF
|
|||||||
if [ "$OS" == "ubuntu" ]; then
|
if [ "$OS" == "ubuntu" ]; then
|
||||||
debug_log add-apt-repository -y ppa:deadsnakes/ppa
|
debug_log add-apt-repository -y ppa:deadsnakes/ppa
|
||||||
elif [ "$OS" == "debian" ]; then
|
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
|
wget -qO- https://pascalroeleven.nl/deb-pascalroeleven.gpg | sudo tee /etc/apt/keyrings/deb-pascalroeleven.gpg &> /dev/null
|
||||||
cat <<EOF | sudo tee /etc/apt/sources.list.d/pascalroeleven.sources
|
cat <<EOF | sudo tee /etc/apt/sources.list.d/pascalroeleven.sources
|
||||||
Types: deb
|
Types: deb
|
||||||
@ -1571,17 +1573,26 @@ Suites: bookworm-backports
|
|||||||
Components: main
|
Components: main
|
||||||
Signed-By: /etc/apt/keyrings/deb-pascalroeleven.gpg
|
Signed-By: /etc/apt/keyrings/deb-pascalroeleven.gpg
|
||||||
EOF
|
EOF
|
||||||
fi
|
|
||||||
|
elif [ "$OS" == "almalinux" ]; then
|
||||||
|
|
||||||
|
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm &> /dev/null
|
||||||
|
|
||||||
debug_log $PACKAGE_MANAGER update
|
debug_log $PACKAGE_MANAGER update
|
||||||
debug_log $PACKAGE_MANAGER install -y python3.12 python3.12-venv
|
debug_log $PACKAGE_MANAGER install -y python3.12 # venv is included!
|
||||||
|
|
||||||
if python3.12 --version &> /dev/null; then
|
fi
|
||||||
:
|
|
||||||
else
|
|
||||||
radovan 1 "Python 3.12 installation failed."
|
|
||||||
fi
|
if python3.12 --version &> /dev/null; then
|
||||||
fi
|
:
|
||||||
|
else
|
||||||
|
radovan 1 "Python 3.12 installation failed."
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_coraza() {
|
configure_coraza() {
|
||||||
|
Loading…
Reference in New Issue
Block a user