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

Marco Gaiarin gaio at sv.lnf.it
Mon Jan 23 11:21:40 CET 2012


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.

-- 
dott. Marco Gaiarin				    GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it	  tel +39-0434-842711  fax +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
	   http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the wpkg-users mailing list