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
f02bf6dfe0
commit
618ff1d1ba
17
INSTALL.sh
17
INSTALL.sh
@ -388,8 +388,6 @@ main() {
|
|||||||
check_requirements() {
|
check_requirements() {
|
||||||
if [ -z "$SKIP_REQUIREMENTS" ]; then
|
if [ -z "$SKIP_REQUIREMENTS" ]; then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
architecture=$(lscpu | grep Architecture | awk '{print $2}')
|
architecture=$(lscpu | grep Architecture | awk '{print $2}')
|
||||||
|
|
||||||
if [ "$architecture" == "aarch64" ]; then
|
if [ "$architecture" == "aarch64" ]; then
|
||||||
@ -411,13 +409,14 @@ check_requirements() {
|
|||||||
echo -e "${RED}Error: running openpanel inside a container is not supported.${RESET}" >&2
|
echo -e "${RED}Error: running openpanel inside a container is not supported.${RESET}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# check if python version is supported
|
fi
|
||||||
current_python_version=$(python3 --version 2>&1 | cut -d " " -f 2 | cut -d "." -f 1,2 | tr -d '.')
|
|
||||||
allowed_versions=("39" "310" "311" "312" "38")
|
# check if python version is supported
|
||||||
if [[ ! " ${allowed_versions[@]} " =~ " ${current_python_version} " ]]; then
|
current_python_version=$(python3 --version 2>&1 | cut -d " " -f 2 | cut -d "." -f 1,2 | tr -d '.')
|
||||||
echo -e "${RED}Error: Unsupported Python version $current_python_version. No corresponding branch available.${RESET}" >&2
|
allowed_versions=("39" "310" "311" "312" "38")
|
||||||
exit 1
|
if [[ ! " ${allowed_versions[@]} " =~ " ${current_python_version} " ]]; then
|
||||||
fi
|
echo -e "${RED}Error: Unsupported Python version $current_python_version. No corresponding branch available.${RESET}" >&2
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user