build.sh : build Nginx 1.23.1

This commit is contained in:
unknown 2022-09-20 12:51:12 +07:00
parent d30de9686c
commit dcee91d7bc
Signed by: minoplhy
GPG Key ID: 90667A59A9908AEC

View File

@ -29,14 +29,14 @@ tar xzf pcre-8.45.tar.gz
# Build Nginx # Build Nginx
cd ~/nginx_build cd ~/nginx_build
if [[ -f "/usr/bin/curl" ]]; then if [[ -f "/usr/bin/curl" ]]; then
curl -L https://nginx.org/download/nginx-1.21.6.tar.gz --output nginx-1.21.6.tar.gz curl -L https://nginx.org/download/nginx-1.23.1.tar.gz --output nginx-1.23.1.tar.gz
elif [[ -f "/usr/bin/wget" ]]; then elif [[ -f "/usr/bin/wget" ]]; then
wget https://nginx.org/download/nginx-1.21.6.tar.gz -O nginx-1.21.6.tar.gz wget https://nginx.org/download/nginx-1.23.1.tar.gz -O nginx-1.23.1.tar.gz
else else
echo "Required Dependencies for download Nginx doesn't exist" echo "Required Dependencies for download Nginx doesn't exist"
fi fi
tar xzf nginx-1.21.6.tar.gz && cd nginx-1.21.6 tar xzf nginx-1.23.1.tar.gz && cd nginx-1.23.1
if [[ -f "/usr/bin/curl" ]]; then if [[ -f "/usr/bin/curl" ]]; then
curl https://raw.githubusercontent.com/minoplhy/nginx-noroot/main/configure.sh | bash curl https://raw.githubusercontent.com/minoplhy/nginx-noroot/main/configure.sh | bash