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

Reduce postinstalls complexity

XMLWordPrintable

    • 1

      The postinstall is not O.K.

      There is no reason to have fragile sed things such as

      sed -i -e "s: modules/: $currentDir/modules/:g" \
      -e "s:/var/www:$currentDir/www:g" \
      -e "s:ServerRoot \"/etc/httpd\":ServerRoot \"$currentDir\":" \
      -e "s:PidFile.*:PidFile ${currentDir}/run/httpd.pid:" \
      

      in a new release.

      Anything that is dependent on path has to have placeholders @SOMETHING@ and these placeholders are to be committed in .conf files.

      .postinstall script uses sed (or powershell) to replace @SOMETHING@ with user's paths as necessary.

      Update and simplify .postinstall and .conf / .conf.in scripts and configs accordingly, please.

            dsoumis Dimitris Soumis
            plodge Paul Lodge
            Paul Lodge Paul Lodge
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: