Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
log openssl version detection info to help with troubleshooting multi…
Browse files Browse the repository at this point in the history
… version setups (#1553)
  • Loading branch information
NarineM authored Jan 26, 2024
1 parent c7e1a8f commit ce373de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/OMS-Agent-for-Linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ After installing the Log Analytics agent for Linux packages, the following addit
**Required package** | **Description** | **Minimum version**
--------------------- | --------------------- | -------------------
Glibc | GNU C Library | 2.5-12
Openssl | OpenSSL Libraries | 1.0.1 or 1.1.x
Openssl | OpenSSL Libraries | 1.0.1, 1.1.x or 3.0.x
Curl | cURL web client | 7.15.5
Python 2 | | 2.6
Python-ctypes | |
Expand Down
5 changes: 5 additions & 0 deletions installer/bundle/bundle_skel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ ulinux_detect_openssl_version()

TMPBINDIR=
# the system OpenSSL version is 1.0.0. Likewise with OPENSSL_SYSTEM_VERSION_11X
# take system current openssl version as default
OPENSSL_SYSTEM_VERSION_FULL=`$OPENSSL_PATH version | awk '{print $2}'`
OPENSSL_SYSTEM_VERSION_10X=`echo $OPENSSL_SYSTEM_VERSION_FULL | grep -Eq '^1.0.'; echo $?`
OPENSSL_SYSTEM_VERSION_100_ONLY=`echo $OPENSSL_SYSTEM_VERSION_FULL | grep -Eq '^1.0.0'; echo $?`
Expand All @@ -316,6 +317,8 @@ ulinux_detect_openssl_version()
echo "Supported versions: 1.0.1 onward (1.0.0 was deprecated), 1.1.*, 3.0.*"
cleanup_and_exit $UNSUPPORTED_OPENSSL
fi
echo "Detected OpenSSL version $OPENSSL_SYSTEM_VERSION_FULL set as system default."
echo "Install/Upgrade will use package(s) from OMS bundle installer's $TMPBINDIR openssl directtory."
}

ulinux_detect_installer()
Expand Down Expand Up @@ -545,6 +548,7 @@ pkg_add()
echo "----- Installing package: $pkg_name ($pkg_filename) -----"

ulinux_detect_openssl_version
# TMPBINDIR now points to the openssl version folder to take pkg from
pkg_filename=$TMPBINDIR/$pkg_filename

if [ "$INSTALLER" = "DPKG" ]; then
Expand Down Expand Up @@ -612,6 +616,7 @@ pkg_upd() {
fi

ulinux_detect_openssl_version
# TMPBINDIR now points to the openssl version folder to take pkg from
pkg_filename=$TMPBINDIR/$pkg_filename

if [ "$INSTALLER" = "DPKG" ]
Expand Down

0 comments on commit ce373de

Please sign in to comment.