mirror of
https://github.com/minoplhy/nginquic.git
synced 2024-11-22 03:27:07 +00:00
build.sh : Prompt for Nginx Installation
This commit is contained in:
parent
3e2a708a16
commit
d408f59b99
24
build.sh
24
build.sh
@ -18,9 +18,21 @@ cd .. && cd ..
|
|||||||
cd nginx-quic
|
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
|
||||||
mkdir /lib/nginx/ && mkdir /lib/nginx/modules
|
|
||||||
cd objs && cp *.so /lib/nginx/modules
|
read -p "Would you like to Install Nginx Scriptly? (y/n)?" choice
|
||||||
rm /usr/sbin/nginx
|
case "$choice" in
|
||||||
cp nginx /usr/sbin/nginx
|
y|Y ) Nginx_Install_ANS="install";;
|
||||||
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.conf > modules.conf
|
n|N ) Nginx_Install_ANS="no";;
|
||||||
cp modules.conf /etc/nginx/modules-enabled
|
* ) Nginx_Install_ANS="abort";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [[ $Nginx_Install_ANS == "install" ]]; then
|
||||||
|
mkdir /lib/nginx/ && mkdir /lib/nginx/modules
|
||||||
|
cd objs && cp *.so /lib/nginx/modules
|
||||||
|
rm /usr/sbin/nginx
|
||||||
|
cp nginx /usr/sbin/nginx
|
||||||
|
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.conf > modules.conf
|
||||||
|
cp modules.conf /etc/nginx/modules-enabled
|
||||||
|
else
|
||||||
|
echo "Nginx Installation Abort. Your Nginx assets location is : ~/nginquic/nginx-quic/objs"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user