[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Importing Paths into Cfengine Environment
From: |
Brendan Strejcek |
Subject: |
Re: Importing Paths into Cfengine Environment |
Date: |
Mon, 10 Jan 2005 10:19:13 -0600 |
User-agent: |
Mutt/1.5.6+20040818i |
control:
split = ( ! ) # Needed to avoid iteration
dpkgpath = ( /bin:/usr/bin:/sbin:/usr/sbin )
shellcommands:
"/bin/sh -c 'PATH=${dpkgpath}; export PATH; dpkg -i ${somepkg}'"
Brian E. Seppanen wrote:
> Periodically I find it necessary to install packages via
> shellcommands on debian hosts. When I do so I get the following errors.
>
> /bin/dpkg --co: dpkg: `ldconfig' not found on PATH.
> /bin/dpkg --co: dpkg: `start-stop-daemon' not found on PATH
> /bin/dpkg --co: dpkg: `install-info' not found on PATH
> /bin/dpkg --co: dpkg: `update-rc.d' not found on PATH
> /bin/dpkg --co: dpkg: 4 expected program(s) not found on PATH.
>
> I understand that cfengine is cleaning out the ENVIRONMENT and requiring
> absolute pathnames for security purposes. Unfortunately in package
> installations the paths are coming from the package and not from cfengine,
> is there any way that I can tell cfengine what those paths should be so
> that when a package install is done from cfengine I don't get these
> errors?
>
> Thanks,
>
> Brian Seppanen
> seppy@chartermi.net
> 906-475-0107 ext 1040
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
>