From a72ac3fca4a91fc23f07ab9c2f0cd4a3713f5279 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Tue, 9 Feb 2021 22:44:40 +0100 Subject: [PATCH] Fix VERSION_ID in RHEL 7 --- tests/letstest/scripts/test_sdists.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/letstest/scripts/test_sdists.sh b/tests/letstest/scripts/test_sdists.sh index c77d674da..becdd6d9a 100755 --- a/tests/letstest/scripts/test_sdists.sh +++ b/tests/letstest/scripts/test_sdists.sh @@ -19,7 +19,7 @@ python3 tools/strip_hashes.py tools/certbot_constraints.txt > requirements.txt # because these systems ship only with OpenSSL 1.0.2, and this OpenSSL version support has been # dropped on cryptography>=3.2 and pyOpenSSL>=20.0.0. # Using this old version of OpenSSL would break the cryptography and pyOpenSSL wheels builds. -if [ -f /etc/redhat-release ] && [ "$(. /etc/os-release 2> /dev/null && echo "$VERSION_ID")" -eq 7 ]; then +if [ -f /etc/redhat-release ] && [ "$(. /etc/os-release 2> /dev/null && echo "$VERSION_ID" | cut -d '.' -f1)" -eq 7 ]; then sed -i 's|cryptography==.*|cryptography==3.1.1|g' requirements.txt sed -i 's|pyOpenSSL==.*|pyOpenSSL==19.1.0|g' requirements.txt fi