2 Replies Latest reply on Aug 12, 2005 12:30 PM by Michael Mraz

    Running pre-command in a Deploy Job

      I'm trying to run the following commands as a pre-command for a RPM deploy job:


      grep "AS release 4" /etc/redhat-release

      if [[ $? != 0 ]]; then

      echo "This package is only valid for RHEL AS release 4 servers!"

      echo "Exiting..."

      exit 255


      exit 0



      I have 'Must have 0 exit status' checked. This doesn't appear to work.


      I'm trying to ensure that the machine being deployed to is RHEL AS 4. I do have a property set on all servers called REDHAT_RELEASE that I can refer to, but I don't see a way to do that in a deploy job.


      --- Mike