From 3e2a708a16f64cd48aec045208995604013a983a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 30 Nov 2022 13:50:20 +0700 Subject: [PATCH 1/2] status : passing --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1abab55..d63a9a5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## Status : Succeeded `(As of `[9ffd06ec85033ac24187d9e7eb28426a36c9df6c](https://github.com/minoplhy/nginquic/commit/9ffd06ec85033ac24187d9e7eb28426a36c9df6c)` at Sept 20 2022)` +## Status : Succeeded `(As of `[9b36007276bb74ba9e548ac18111719844b3f483](https://github.com/minoplhy/nginquic/commit/9b36007276bb74ba9e548ac18111719844b3f483)` at Nov 30 2022)` # Note to Self : This Script is using to build nginx with quic and some modules i'm currently using . From d408f59b99ec31c92ed57ddc1c1178d1b9cf8c17 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Fri, 3 Mar 2023 23:44:06 +0700 Subject: [PATCH 2/2] build.sh : Prompt for Nginx Installation --- build.sh | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 23cbe42..da93600 100644 --- a/build.sh +++ b/build.sh @@ -18,9 +18,21 @@ cd .. && cd .. cd nginx-quic 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 -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 \ No newline at end of file + +read -p "Would you like to Install Nginx Scriptly? (y/n)?" choice +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 + 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 \ No newline at end of file