Comment lines for uninstall path are added to /etc/profile after each CA Performance Center upgrade

book

Article ID: 209858

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

 
When upgrading CA Performance Center, comment lines with "Do NOT modify these lines; they are used to uninstall" are always added to the /etc/profile file:

# New environment setting added by MySql on Fri Feb 12 10:44:56 CET 2021 1. # The unmodified version of this file is saved in /etc/profile2116723057. # Do NOT modify these lines; they are used to uninstall. PATH="${​​​​​​​PATH}​​​​​​​:/opt/application/CA/MySql/bin" export PATH # End comments by InstallAnywhere on Fri Feb 12 10:44:56 CET 2021 1.
# New environment setting added by Performance Center SSO on Fri Feb 12 10:46:35 CET 2021 1. # The unmodified version of this file is saved in /etc/profile1872306048. # Do NOT modify these lines; they are used to uninstall. PATH="${​​​​​​​PATH}​​​​​​​:/opt/application/CA/jre" export PATH # End comments by InstallAnywhere on Fri Feb 12 10:46:35 CET 2021 1.
# New environment setting added by Performance Center SSO on Fri Feb 12 10:46:35 CET 2021 4. # The unmodified version of this file is saved in /etc/profile1872306048. # Do NOT modify these lines; they are used to uninstall. PATH="${​​​​​​​PATH}​​​​​​​:/opt/application/CA/jre/bin" export PATH # End comments by InstallAnywhere on Fri Feb 12 10:46:35 CET 2021 4.

Cause

The the installer is appending these entries to the file /etc/profile when doing an upgrade.

 

Environment

Release : 3.7.x - 20.2.x

Component : CA Performance Center

Resolution

This is an expected behavior. These lines are being added so that root user has MySql, Java and other tools in its PATH. Some tools needs to be added to root's profile or use full paths when running.

If for some internal company rule it is not allowed to have application's specific data in /etc/profile, these lines can be removed. 

Note: the lines will be added at every product upgrade, so will have to remove them after each CA Performance Center upgrade.