Forum: Cfengine Help
Subject: Re: custom package_add_command not executing
Author: scottdob
Link to topic: https://cfengine.com/forum/read.php?3,22257,22263#msg-22263

We have several tests to make sure its working.  Here is the shell script.  As 
you can see we update a file in /tmp with each step and that file is not 
getting created.  The script also checks out a directory from cvs so that 
should exist as well.  I also so examples in other people's promises from 
around the internet that would show the execution of the script.  It is 
executable, and we used it previously as a command promise and that worked.  
This is for a proof of concept and exercise in creating package promises.  

# cat /usr/install_scripts/install_bb1tls.sh
#!/bin/bash
echo date >> /tmp/bbltls_install
echo $1 >> /tmp/bbltls_install
cd /usr/local/src
export CVSROOT=:ext:cvsad...@cvs.unx.sas.com:/cvs/bbl_tls
export CVS_RSH=rsh

if [ ! -d $1 ]
 then
  echo checking out from cvs
  cvs co $1
fi

if [ $1 == "bbtools" ]
 then
  cd bbtools && make install
else
  cd $1
  make all
  make install
fi

echo '-------------------' >> /tmp/bbltls_install
echo >> /tmp/bbltls_install

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to