nginx download fails during install, bith on ubuntu 20.04.02 and 18.04.5
perariontaeadastra opened this issue · 0 comments
perariontaeadastra commented
Attach the following commands output
- lsb_release -a :
- No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic - [] nginx -V :
Nginx has been already installed by Plesk installation, which I was going to replace. Worked on my previous servers without problems.
Describe the bug
I wanted to replace Nginx shipped with Plesk with a Nginx-ee and it worked well before. I tried on Ubuntu 20.04.02 and on 18.04.5 with the same result. Nginx-ee log file has been attached.
Probably, the issue comes from this line - curl -sL https://nginx.org/en/download.html 2>&1 | grep -E -o 'nginx-[0-9.]+.tar[.a-z]*' | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 2 | grep 1.18 2>&1, since 1.18 is now a legacy version. Replacing it with 1.20 returns a value, but not with 1.18
Thank you.
nginx-ee.log