Uploaded image for project: 'JBoss Core Services'
  1. JBoss Core Services
  2. JBCS-204

postinstall doesn't modify correctly mod_cluster.conf file

XMLWordPrintable

    • Hide

      download zip
      unzip and run "sh .postinstall"
      grep "/opt" conf.d/mod_cluster.conf

      Show
      download zip unzip and run "sh .postinstall" grep "/opt" conf.d/mod_cluster.conf

      There is still /opt/rh/... path present in uncomemnted line after postinstall in conf.d/mod_cluster.conf file.

      MemManagerFile /opt/rh/jbcs-httpd24/root/var/cache/mod_cluster
      

      Root cause: change between this and prev. version in config file
      From: MemManagerFile cache/mod_cluster
      To: MemManagerFile /opt/rh/jbcs-httpd24/root/var/cache/mod_cluster
      POSTINSTALL script looks for pattern: MemManagerFile cache/mod_cluster

      sed -i -e "s:MemManagerFile cache/mod_cluster:MemManagerFile $currentDir/cache/mod_cluster:" conf.d/mod_cluster.conf
      

      Expect something like:

      sed -i -e "s:MemManagerFile.*cache/mod_cluster:MemManagerFile $currentDir/cache/mod_cluster:" conf.d/mod_cluster.conf
      

            huwang@redhat.com Hui Wang
            jonderka@redhat.com Jan Onderka
            Michal Karm Michal Karm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: