Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
1.0.11
-
None
-
RHEL/CentOS Linux
Description
The platform RPMs POSTIN script runs columnstore/bin/post-install
which in turn modifies /root/.bashrc, e.g. to add some aliases
Packages should not modify user specific files (even for user "root") or global files like /etc/profile directly, instead they are supposed to create package specific profile files under
the /etc/profile.d directory, e.g.
/etc/profile.d/mariadb-columnstore.sh
Directly modifying existing files can lead to conflicts with concurrent configuration management systems like puppet, ansible, ...
See also section 16.2 of the Linux Standard Base
/etc/profile.d
A directory containing shell scripts. Script names should follow the same conventions as specified for cron jobs (see Cron Jobs, but should have the suffix .sh. The behavior is unspecified if a script is installed in this directory that does not have the suffix .sh.
The sh utility shall read and execute commands in its current execution environment from all the shell scripts in this directory that have the suffix .sh when invoked as an interactive login shell, or if the -l (the letter ell) is specified (see Shell Invocation).
https://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/etc.html
Attachments
Issue Links
- duplicates
-
MCOL-667 Installation of MCS updates the root .bashrc file
- Closed