Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-906

Columnstore "platform" RPM modifies .bashrc

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 1.0.11
    • Icebox
    • installation
    • 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

          Activity

            People

              Unassigned Unassigned
              hholzgra Hartmut Holzgraefe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.