File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,17 @@ if [[ $EUID -ne 0 ]]; then
6
6
exit 1
7
7
fi
8
8
9
+ # Get latest version from nginx.org
10
+ curl_request () {
11
+ curl -s https://nginx.org/en/download.html |
12
+ grep -oP " (?<=" $1 " version).*?(?=[0-9]+\.[0-9]+\.[0-9](-[0-9])?</a)" |
13
+ grep -oP " [0-9]+\.[0-9]+\.[0-9](-[0-9])?"
14
+ }
15
+ latest_mainline=$( curl_request Mainline)
16
+ latest_stable=$( curl_request Stable)
9
17
# Define versions
10
- NGINX_MAINLINE_VER=${NGINX_MAINLINE_VER:- 1.21.6 }
11
- NGINX_STABLE_VER=${NGINX_STABLE_VER:- 1.22.0 }
18
+ NGINX_MAINLINE_VER=${NGINX_MAINLINE_VER:- $latest_mainline }
19
+ NGINX_STABLE_VER=${NGINX_STABLE_VER:- $latest_stable }
12
20
LIBRESSL_VER=${LIBRESSL_VER:- 3.3.1}
13
21
OPENSSL_VER=${OPENSSL_VER:- 1.1.1l}
14
22
NPS_VER=${NPS_VER:- 1.13.35.2}
You can’t perform that action at this time.
0 commit comments