mirror of https://github.com/citusdata/citus.git
Fixes version errors
parent
faa394d709
commit
41b9db020d
|
@ -1,13 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -eo
|
set -ex
|
||||||
|
|
||||||
# Function to get the OS version
|
# Function to get the OS version
|
||||||
get_os_version() {
|
get_os_version() {
|
||||||
if [[ -f /etc/centos-release ]]; then
|
if [[ -f /etc/centos-release ]]; then
|
||||||
cat /etc/centos-release | awk '{print $4}'
|
cat /etc/centos-release | awk '{print $4}'
|
||||||
elif [[ -f /etc/oracle-release ]]; then
|
elif [[ -f /etc/oracle-release ]]; then
|
||||||
cat /etc/oracle-release | awk '{print $4}'
|
cat /etc/oracle-release | awk '{print $5}'
|
||||||
else
|
else
|
||||||
echo "Unknown"
|
echo "Unknown"
|
||||||
fi
|
fi
|
||||||
|
@ -34,7 +34,7 @@ echo "OS version: $(get_os_version)"
|
||||||
# if os version is centos 7 or oracle linux 7, then remove urllib3 with pip uninstall and install urllib3<2.0.0 with pip install
|
# if os version is centos 7 or oracle linux 7, then remove urllib3 with pip uninstall and install urllib3<2.0.0 with pip install
|
||||||
if [[ ${package_type} == "rpm" && $(get_os_version) == 7* ]]; then
|
if [[ ${package_type} == "rpm" && $(get_os_version) == 7* ]]; then
|
||||||
python3 -m pip uninstall -y urllib3
|
python3 -m pip uninstall -y urllib3
|
||||||
python3 -m pip install urllib3<2.0.0
|
python3 -m pip install 'urllib3<2'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python3 -m tools.packaging_automation.validate_build_output --output_file output.log \
|
python3 -m tools.packaging_automation.validate_build_output --output_file output.log \
|
||||||
|
|
Loading…
Reference in New Issue