Update INSTALL.sh

This commit is contained in:
Stefan Pejcic 2024-07-23 23:19:52 +02:00 committed by GitHub
parent a6f617242b
commit 32c3d167eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1272,13 +1272,13 @@ install_openadmin(){
echo "Downloading files for Ubuntu22 and python version $current_python_version" echo "Downloading files for Ubuntu22 and python version $current_python_version"
git clone -b $current_python_version --single-branch https://github.com/stefanpejcic/openadmin $OPENPADMIN_DIR git clone -b $current_python_version --single-branch https://github.com/stefanpejcic/openadmin $OPENPADMIN_DIR
cd $OPENPADMIN_DIR cd $OPENPADMIN_DIR
debug_log pip install -r requirements.txt debug_log pip install --default-timeout=3600 -r requirements.txt
# Ubuntu 24 # Ubuntu 24
elif [ -f /etc/os-release ] && grep -q "Ubuntu 24" /etc/os-release; then elif [ -f /etc/os-release ] && grep -q "Ubuntu 24" /etc/os-release; then
echo "Downloading files for Ubuntu24 and python version $current_python_version" echo "Downloading files for Ubuntu24 and python version $current_python_version"
git clone -b $current_python_version --single-branch https://github.com/stefanpejcic/openadmin $OPENPADMIN_DIR git clone -b $current_python_version --single-branch https://github.com/stefanpejcic/openadmin $OPENPADMIN_DIR
cd $OPENPADMIN_DIR cd $OPENPADMIN_DIR
debug_log pip install -r requirements.txt --break-system-packages debug_log pip install --default-timeout=3600 -r requirements.txt --break-system-packages
# on ubuntu24 we need to use overlay instead of devicemapper! # on ubuntu24 we need to use overlay instead of devicemapper!
OVERLAY=true OVERLAY=true
@ -1290,7 +1290,7 @@ install_openadmin(){
echo "Downloading files for Debian and python version $current_python_version" echo "Downloading files for Debian and python version $current_python_version"
git clone -b debian-$current_python_version --single-branch https://github.com/stefanpejcic/openadmin $OPENPADMIN_DIR git clone -b debian-$current_python_version --single-branch https://github.com/stefanpejcic/openadmin $OPENPADMIN_DIR
cd $OPENPADMIN_DIR cd $OPENPADMIN_DIR
debug_log pip install -r requirements.txt --break-system-packages debug_log pip install --default-timeout=3600 -r requirements.txt --break-system-packages
# other # other
else else
echo "Unsuported OS. Currently only Ubuntu22-24 and Debian11-12 are supported." echo "Unsuported OS. Currently only Ubuntu22-24 and Debian11-12 are supported."