build.sh : ditch Prompting. Didn't work with curl.
This commit is contained in:
parent
c17b2892fe
commit
2e38f6dbcd
@ -8,6 +8,7 @@ This Script is using to build nginx with quic and some modules i'm currently usi
|
|||||||
OS : Debian
|
OS : Debian
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
Nginx_Install=yes # This variable is required if you want Nginx to be installed scriptibly (on Debian-based systems).
|
||||||
curl https://raw.githubusercontent.com/minoplhy/nginquic/main/build.sh | sudo bash
|
curl https://raw.githubusercontent.com/minoplhy/nginquic/main/build.sh | sudo bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
11
build.sh
11
build.sh
@ -21,14 +21,7 @@ cd nginx-quic
|
|||||||
mkdir mosc && cd mosc && curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.sh | bash && cd ..
|
mkdir mosc && cd mosc && curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.sh | bash && cd ..
|
||||||
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/configure.sh | bash && make
|
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/configure.sh | bash && make
|
||||||
|
|
||||||
read -p "Would you like to Install Nginx Scriptly? (y/n)?" choice
|
if [[ $Nginx_Install == "yes" ]]; then
|
||||||
case "$choice" in
|
|
||||||
y|Y ) Nginx_Install_ANS="install";;
|
|
||||||
n|N ) Nginx_Install_ANS="no";;
|
|
||||||
* ) Nginx_Install_ANS="abort";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [[ $Nginx_Install_ANS == "install" ]]; then
|
|
||||||
mkdir /lib/nginx/ && mkdir /lib/nginx/modules
|
mkdir /lib/nginx/ && mkdir /lib/nginx/modules
|
||||||
cd objs && cp *.so /lib/nginx/modules
|
cd objs && cp *.so /lib/nginx/modules
|
||||||
rm /usr/sbin/nginx
|
rm /usr/sbin/nginx
|
||||||
@ -36,5 +29,5 @@ if [[ $Nginx_Install_ANS == "install" ]]; then
|
|||||||
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.conf > modules.conf
|
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.conf > modules.conf
|
||||||
cp modules.conf /etc/nginx/modules-enabled
|
cp modules.conf /etc/nginx/modules-enabled
|
||||||
else
|
else
|
||||||
echo "Nginx Installation Abort. Your Nginx assets location is : ~/nginquic/nginx-quic/objs"
|
echo "Nginx_Install variable isn't set/vaild. Your Nginx assets location is : ~/nginquic/nginx-quic/objs"
|
||||||
fi
|
fi
|
Reference in New Issue
Block a user