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

Commit

Permalink
Merge branch 'master' into aswatt-docspatch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
aswatt authored Feb 12, 2024
2 parents 8cee9f6 + c857847 commit 54bad05
Show file tree
Hide file tree
Showing 5 changed files with 1,884 additions and 1,834 deletions.
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
6 changes: 6 additions & 0 deletions installer/datafiles/linux.data
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ fi

# Ensure omsagent is in the omiusers group, but leave omsagent as a group
/usr/sbin/usermod -g omiusers omsagent 1> /dev/null 2> /dev/null
# Ensure omsagent is in the omi group as well
/usr/sbin/usermod -g omi omsagent 1> /dev/null 2> /dev/null

# Add the 'nxautomation' group if it does not already exist
# (Can't use useradd with -U since that doesn't exist on older systems)
Expand Down Expand Up @@ -165,6 +167,10 @@ if ${{PERFORMING_UPGRADE_NOT}}; then
# Unconfigure sudo if it's already configured
RemoveSudoersSupport

# Remove omsagent from the omi group
echo "Removing omsagent from the omi group ..."
gpasswd -d omsagent omi

# Remove the service accounts
echo "Deleting nxautomation service account ..."
userdel nxautomation 2> /dev/null
Expand Down
Loading

0 comments on commit 54bad05

Please sign in to comment.