mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 22:33:00 -04:00
Fix VERSION_ID in RHEL 7
This commit is contained in:
parent
f6f9a9ea78
commit
a72ac3fca4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue