[Users] spec file and config_template.xml
Barry De Graaff
barrydg at zetalliance.org
Sun May 29 17:29:24 CEST 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello Tuan,
Maybe you can look into:
zmzimletctl getConfigTemplate <zimlet.zip>
https://www.zimbra.com/docs/os/6.0.8/administration_guide/Zimlets.11.4.html
I think maybe, for ownCloud Zimlet and pgp zimlet as well, you could begin with
coping config_template.xml only on install AND NOT on upgrades, or even better
only copy it, in case it is NOT present yet on the server.
That way, if the contents of config_template.xml is changed for a new version
(aka has xml elements that are new),
I can prompt the user, to tell the admin, to remove config_template.xml and install
and configure a new version.
Kind regards,
Barry de Graaff
Zeta Alliance Founder
www.zetalliance.org
Skype: barrydegraaff.tk
Fingerprint: 9e0e165f06b365ee1e47683e20f37303c20703f8
- ----- Original Message -----
From: "Truong Anh Tuan" <tuanta at iwayvietnam.com>
To: "Barry De Graaff" <barrydg at zetalliance.org>
Cc: users at lists.zetalliance.org
Sent: Sunday, May 29, 2016 5:09:57 PM
Subject: Re: spec file and config_template.xml
On 05/28/2016 12:58 PM, Barry De Graaff wrote:
>
> Hello Tuan,
>
> Thanks for your spec file for ownCloud Zimlet.
You are welcome.
> Can you add something to deal with
> config_template.xml
>
> This is a file with admin configuration, it is also present in pgp-zimlet. One
> probably does NOT want to overwrite that file (if modified) on updates.
>
> So old version, config_template.xml (not changed by admin), means to upgrade it
> if changes occur on rpm update... otherwise leave it untouched.
The technique I currently us to deal with a RPM zimlet package is to
make a zip file and put into the package.
Once RPM package is installed, that zip file is simply copied to the
folder /opt/zimbra/zimlets-extra then let "zmzimletctl deploy" do the
rest (in %post installation)
Therefore, I have no idea how to deal with your issue now.
Anything we can do with "zmzimletctl deploy"? Or any other ideas?
> Can you take a look at that please? In the mean time I am testing your packages on
> another production server, that is NOT the alliance one, as that run Ubuntu.
How can you use a Yum repo on Ubuntu?
Or you will convert RPM to DEB by alien, won't you?
- --
Rgds,
Tuan
-----BEGIN PGP SIGNATURE-----
Version: OpenPGP.js v2.3.0
Comment: http://openpgpjs.org
wsFcBAEBCAAQBQJXSwrSCRAg83MDwgcD+AAALsQP/2F7m9x/4wk2py0vpJ9U
ECof2m+5JknZCmQGyM1BGZU155PUQLHZPo5IDpV/G/W+W1q0L0yTJRk7qQEX
9t8J2CtD+JQavcgaxOK0ARhDOcClxirqH3L96m5cbG9EsJp8Fy/3wCQE+2X0
8CurB0nHE0u0RoMj2vUsOM8XjkivmB2Hcg8RE9VpvFN/yCk7h9Q2nNwtqioW
YmsDultfuR3R6rKrn3a+kxIHcEg713buWzBjcws9AdSj+xc2b9+NyNQMh0rG
63NSvkFClU8H9ixY1BQOIv+5BE0sVTkhW1ZJAEH4K/AYrXV38ZRuXDnPhVL9
vyd9NZZKM2o1ldD/cgUjfOmMpT3D1me53OdRMitrocBfgk9cGDslHGdvg3ae
H46cI2CvA5nnI6SqtZQA87MXGHOE1IAkq8fx5vzQbDNA/UggnnXPD4FJ2/Qq
anT//UUZc1OWdADjzU81eGdjWONfTcHLnCnHNlrO8Meho2/CpWmKLecxqVse
NXw0cOYlAjLdeksoD4Bso8sWVORdIrMeBrJG6Mw7F2OAn54DL5jeflrUjxxR
vSuJtpGtGFshsWoXzXqI7kEZ1dOyyLAPOJkPlvHoLa8sGtQud4AR1u+D38Jg
JqiD0Pq33elPcFsNiOGbJ7bZuqbUc1TNQDT3rM1hmRsDJIGzGHrK3ZSdCu5r
whzs
=zK2Q
-----END PGP SIGNATURE-----
More information about the Users
mailing list