[MCOL-906] Columnstore "platform" RPM modifies .bashrc Created: 2017-09-07  Updated: 2020-08-25  Resolved: 2017-09-07

Status: Closed
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: 1.0.11
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Hartmut Holzgraefe Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Environment:

RHEL/CentOS Linux


Issue Links:
Duplicate
duplicates MCOL-667 Installation of MCS updates the root ... Closed

 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



 Comments   
Comment by Hartmut Holzgraefe [ 2017-09-07 ]

Duplicate of https://jira.mariadb.org/browse/MCOL-667

Comment by David Hill (Inactive) [ 2017-09-07 ]

667

Generated at Thu Feb 08 02:24:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.