diff --git a/docs/OMS-Agent-for-Linux.md b/docs/OMS-Agent-for-Linux.md index 06f4f6f76..bda699c5c 100644 --- a/docs/OMS-Agent-for-Linux.md +++ b/docs/OMS-Agent-for-Linux.md @@ -71,7 +71,7 @@ The OMS agent for Linux is provided in a self-extracting and installable shell s **Installing the agent** 1. Transfer the appropriate bundle (x86 or x64) to your Linux computer, using scp/sftp. -2. Install the bundle by using the `--install` or `--upgrade` argument. Note: use the `--upgrade` argument if any existing packages are installed, as would be the case if the system Center Operations Manager agent for Linux is already installed. To onboard to Operations Management Suite during installation, provide the `-w ` and `-s ` parameters. +2. Install the bundle by using the `--install` or `--upgrade` argument. Note: must use the `--upgrade` argument if any dependent packages such as omi, scx, omsconfig or their older versions are installed, as would be the case if the system Center Operations Manager agent for Linux is already installed. To onboard to Operations Management Suite during installation, provide the `-w ` and `-s ` parameters. **To install and onboard directly:** ``` diff --git a/installer/bundle/bundle_skel.sh b/installer/bundle/bundle_skel.sh index e5b91f776..323009005 100644 --- a/installer/bundle/bundle_skel.sh +++ b/installer/bundle/bundle_skel.sh @@ -370,21 +370,8 @@ python_ctypes_installed() { # Check for Python ctypes library (required for omsconfig) hasCtypes=1 echo "Checking for ctypes python module ..." - - # Check #1: Attempt to create and execute a temporary file importing ctypes - tempFile=`mktemp` - - cat < $tempFile -#! /usr/bin/python -import ctypes -EOF - - chmod u+x $tempFile - $tempFile 1> /dev/null 2> /dev/null - [ $? -eq 0 ] && hasCtypes=0 - rm $tempFile - - # Check #2: Attempt to run python with the single import command + + # Attempt to run python with the single import command python -c "import ctypes" 1> /dev/null 2> /dev/null [ $? -eq 0 ] && hasCtypes=0