[wpkg-users] How to execute something weekly or monthly?

Ronny ladiko at web.de
Thu Jan 26 18:55:25 CET 2012



Am 23.01.2012 20:40, schrieb ladiko at web.de:
>
> Hello Marco,
>
> this is not really related to my problem as the wpkg.xml is updated at 
> every run of wpkg. What i want is a single package that runs only once 
> a week or once a month while wpkg still can run several times. So it 
> seems like i have to place a file and check its modification date as i 
> mentioned in my first post.
>
> Sorry for using TOFU post. The Android Gmail client doesn't support 
> editing in the quotation.
>
> Regards Ronny
>
> -- 
> Sent from my mobile device.
>
> Am 23.01.2012 11:22 schrieb "Marco Gaiarin" <gaio at sv.lnf.it 
> <mailto:gaio at sv.lnf.it>>:
>
>     Mandi! Stefan Pendl
>      In chel di` si favelave...
>
>     > I see some problems with this approach:
>
>     You're right, effectively after doing some test i realize that i was
>     wrong... simply because newer wpkg update the wpkg.xml file at every
>     step, not at the end.
>
>
>     I've simply added, in wpkg client pre execution:
>
>      if exist "%SystemRoot%\system32\wpkg.xml" (
>            copy /y %SystemRoot%\system32\wpkg.xml
>     %SystemRoot%\system32\wpkg.old >nul
>      )
>
>     and now i check '%SystemRoot%\system32\wpkg.old'.
>
>     This is not really a ''safe'' method, but can be useful in some case.
>
>     EG, i've prepared a recipe to install bacula file daemon client,
>     that i
>     don't use extensively but only on some client; a second recipe, if
>     there's a server side .conf file, activate bacula and configure it.
>
>     With a check like that, i can add a client (or modify the
>     configuration
>     file) and have the second recipe do the upgrade.
>     Because normaly i do that not massively but on that pc, i can check if
>     works (really, i can do it manually, but using wpkg are very cosy! ;).
>
>     If i have some doubt, or i have to propagate some very important
>     update, i can upgrade revision and have a forced installation.
>
>
>     Rougly: because i copy wpkg.xml to wpkg.old *before* wpkg.js run, if
>     some configuration file have a modification date newer then wpkg.old,
>     it is really a new file and have to be ''upgraded''.
>     It is not true the opposite: but as stated, if really i need to
>     propagate some config options, i can update the revision.
>
>
So it seems like there is no other wat than to check again a self 
created file because wpkg.xml is changed every run which is too often. 
Thank you for the hint regarding to "datemodifyolderthan". Seems like it 
is not mentioned in the normal documentation.

Kind regards Ronny :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20120126/85c1ee27/attachment-0002.html>


More information about the wpkg-users mailing list