mirror of
https://github.com/minoplhy/nginx-noroot.git
synced 2024-11-22 09:16:53 +00:00
build.sh : build Nginx 1.23.1
This commit is contained in:
parent
d30de9686c
commit
dcee91d7bc
6
build.sh
6
build.sh
@ -29,14 +29,14 @@ tar xzf pcre-8.45.tar.gz
|
||||
# Build Nginx
|
||||
cd ~/nginx_build
|
||||
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
|
||||
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
|
||||
echo "Required Dependencies for download Nginx doesn't exist"
|
||||
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
|
||||
curl https://raw.githubusercontent.com/minoplhy/nginx-noroot/main/configure.sh | bash
|
||||
|
Loading…
Reference in New Issue
Block a user