Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-10565

RPM - yum update overrides EAP_HOME/bin/[standalone|domain].conf files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 7.1.0.CR2
    • 7.0.5.GA
    • RPM
    • None
    • Hide

      I reproduced it via a small hack, but I believe it works same with update too:

      1. prepared RHEL7 machine, configured EAP7 channels and installed latest EAP7
      2. modified these two files:
        /etc/opt/rh/eap7/wildfly/eap7-standalone.conf
        /opt/rh/eap7/root/usr/share/wildfly/bin/standalone.conf
        
      3. executed yum reinstall eap7-wildfly-7.0.5-3.GA_redhat_2.1.ep7.el7.noarch

      When you now check modified files, you can see that changes in /opt/rh/eap7/root/usr/share/wildfly/bin/standalone.conf are lost.

      Show
      I reproduced it via a small hack, but I believe it works same with update too: prepared RHEL7 machine, configured EAP7 channels and installed latest EAP7 modified these two files: /etc/opt/rh/eap7/wildfly/eap7-standalone.conf /opt/rh/eap7/root/usr/share/wildfly/bin/standalone.conf executed yum reinstall eap7-wildfly-7.0.5-3.GA_redhat_2.1.ep7.el7.noarch When you now check modified files, you can see that changes in /opt/rh/eap7/root/usr/share/wildfly/bin/standalone.conf are lost.

    Description

      When EAP7 is installed via RPMs and is updated via standard yum update command, configuration files in /opt/rh/eap7/root/usr/share/wildfly/bin/standalone.conf and /opt/rh/eap7/root/usr/share/wildfly/bin/domain.conf are overwritten even if they contain some customer changes.

      I understand that these files are not in 'etc' folder and in our documentation we instruct user to use files in /etc/opt/rh/eap7/wildfly/eap7-[standalone|domain].conf or /etc/sysconfig/eap7-[standalone|domain] respectively. But I think that we still should not silently overwhite such modifed files.

      Note that there are more *.conf files in the EAP_HOME/bin directory, thus maybe same should apply also on these too:

      # ll /opt/rh/eap7/root/usr/share/wildfly/bin/*.conf
      -rw-rw-r--. 1 root root 1841 Feb 21 04:15 /opt/rh/eap7/root/usr/share/wildfly/bin/appclient.conf
      -rw-rw-r--. 1 root root 2561 Feb 21 04:15 /opt/rh/eap7/root/usr/share/wildfly/bin/domain.conf
      -rw-rw-r--. 1 root root   48 Feb 21 04:15 /opt/rh/eap7/root/usr/share/wildfly/bin/product.conf
      -rw-rw-r--. 1 root root 2590 Feb 21 04:15 /opt/rh/eap7/root/usr/share/wildfly/bin/standalone.conf
      

      Attachments

        Issue Links

          Activity

            People

              permaine Permaine Cheung
              jstourac@redhat.com Jan Stourac
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: