Skip to content

Commit e86c102

Browse files
committed
fix: updating sm version checks
1 parent 6df664e commit e86c102

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

static/scripts/install-nim-bundle.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,10 @@ installBundleForDebianDistro() {
331331
debian_install_nginx
332332
debian_install_clickhouse
333333
debian_install_nim
334+
echo "security module installation opted : ${USE_SM_MODULE}"
334335
if [ "${USE_SM_MODULE}" == "true" ]; then
335336
nim_major_version=$(nms-core --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | awk -F. '{print $1}')
336-
nim_minor_version=$(nms-core --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | awk -F. '{print $1}')
337+
nim_minor_version=$(nms-core --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | awk -F. '{print $2}')
337338
if [[ $nim_major_version -ge 2 && $nim_minor_version -ge 19 ]]; then
338339
echo "Note: NGINX Instance Manager version 2.19.0 or later comes with security monitoring installed. skipping installing security monitoring"
339340
else

0 commit comments

Comments
 (0)