ROOTCMD in cfengine script

Thomas Lange lange at informatik.uni-koeln.de
Sat Aug 18 21:29:15 CEST 2007


>>>>> On Sat, 18 Aug 2007 18:52:20 +0200 (CEST), Per Foreby <perf at ddg.lth.se> said:

    > Is it possible to use $ROOTCMD in cfengine scripts?
    > I update a configuration file for tex-common, and want to run 
    > update-texmf after that. It must work both for install and softupdate.

    >    shellcommands:
    >      any::
    >        ${ROOTCMD} /usr/sbin/update-texmf

    > The error from cfengine says that the command must be an absolute path, 
IMO this error is because chroot is not used as /sbin/chroot but
only as chroot in $ROOTCMD. You may define $ROOTCMD in a class/*.var file.

-- 
regards Thomas


More information about the linux-fai mailing list