Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4954

RPM Packaging Removes Config File

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 5.5.32
    • 5.5.34
    • None
    • CentOS 6

    Description

      If the default /etc/my.cnf file has been modified, removing the MariaDB-Server RPM will change /etc/my.cnf to /etc/my.cnf.rpm.save:

      [root@dev-160-18 ~]#  rpm -e --noscripts --nodeps $(rpm -qa | grep MariaDB)
      warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
      [root@dev-160-18 ~]# 

      This is unexpected behavior, as Oracle MySQL packages do not do this (tested with Oracle MySQL 5.6.13). Oracle MySQL will leave the /etc/my.cnf file alone:

      [root@dev-160-18 ~]# rpm -e --nodeps $(rpm -qa|grep MySQL)
      [root@dev-160-18 ~]# ls -la /etc/my*
      -rw-r--r--. 1 root root 281 Aug 27 06:16 /etc/my.cnf
      [root@dev-160-18 ~]# 

      It was suggested that the "no replace" option be specified in the RPM spec file. But I don't know about packaging so that might not be the correct configuration option.

      Thanks!

      Attachments

        Activity

          People

            serg Sergei Golubchik
            wfong Will Fong
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.