help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy a file into every home directory


From: Pau Capdevila/Upcnet
Subject: Re: Copy a file into every home directory
Date: Fri, 28 May 2004 10:56:19 +0200


Hi

I'm afraid I cried victory too early...
I'm still trying to copy a file using the "home" directive.
Homedirs are local and I don't know what to define in $(mountpattern)/$(homepattern)

I've tried this:

    mountpattern    = ( /home )
    homepattern     = ( ? )

And then:

copy:
                                                                                                                             
        /tmp/AskForSupport.desktop  dest=home/Desktop/AskForSupport.desktop mode=644


What I am missing?




On date 27/05/2004 15:42:22  Mark.Burgess wrote:

>There is an example of this in the reference manual under
>copy
>
>http://www.cfengine.org/docs/cfengine-Reference.html#copy
>
>see end of section
>M
>
>On 27 May, Pau Capdevila/Upcnet wrote:
>> Hi,
>>
>> I'm trying to copy a .desktop file that lets the user ask for support into
>> every users' home dir.
>> Is there a way to do so with the "home" directive or do I have to write an
>> external script?
>>
>> My idea was to define a filter associated in a file section with an
>> ExecCommand action that copied the .desktop file.
>> But that doesn't seem to work.
>>
>> Thanks in advance.
>
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
>Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]