[rudder-users] Multiple commands in "Enforce file content" directive
Olivier Desport
olivier.desport at ac-versailles.fr
Thu Apr 18 12:41:58 CEST 2013
*Olivier DESPORT
*Infrastructures Tice
DSI
Tél : 01 30 83 52 92
Tcp. 01 30 83 48 46
Rectorat de Versailles • 3 boulevard de Lesseps • 78017 Versailles cedex •
http://www.ac-versailles.fr <cid:part2.04010103.05060007 at ac-versailles.fr>
Le 18/04/2013 12:28, Matthieu CERDA a écrit :
> Hello Olivier,
Hello Matthieu,
>
> I see a potential lead here to help you: ou always need to use
> absolute paths on your commands because CFEngine strips the default
> paths by design. Do you use absolute or relative commands ?
I use absolute commands with arguments :
/usr/sbin/a2dismod ssl
/usr/sbin/a2enmod ldap auth_basic authnz_ldap authz_user rpaf gnutls
/usr/sbin/service apache2 restart
Should I use cotes ?
>
> And you should not have to use & on your commands, just listing then
> should be okay.
>
>
> Olivier Desport <olivier.desport at ac-versailles.fr> a écrit :
>
> Hello,
>
> I use an "Enforce file content" directive with replacement. I need
> to launch several commands after the replacement is done. Only the
> first line of the textarea field is executed and a syntax like
> "command1 && command2 && command3" gives the same result.
>
> Is there an issue ?
>
> Thanks.
>
>
>
> ------------------------------------------------------------------------
>
> rudder-users mailing list
> rudder-users at lists.rudder-project.org
> http://www.rudder-project.org/mailman/listinfo/rudder-users
>
>
> --
> Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20130418/5fed320a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acver-gris.jpg
Type: image/jpeg
Size: 2372 bytes
Desc: not available
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20130418/5fed320a/attachment.jpg>
More information about the rudder-users
mailing list