[Pkg-javascript-devel] Javascript trigger design

Thorsten Glaser t.glaser at tarent.de
Mon Dec 1 08:26:55 UTC 2014


On Sat, 29 Nov 2014, Thomas Goirand wrote:

> 2/ in debian/openstack-dashboard.postinst, implement something like:
> 
> if [ "$1" = "triggered" ] ; then
> 	/usr/share/openstack-dashboard/manage.py compress --force
> fi
> 
> Is it *that* simple?

No, triggers unfortunately are not that simple: if you install/upgrade
openstack-dashboard together with some of the packages it wants a
trigger on, $1="triggered" will sometimes not happen, only "configure".

Have a look at these:

• https://evolvis.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=evolvis-platfrm/evolvisforge.git;a=blob;f=mw-plugin/debian/triggers;h=723d1c077e3cf10350952cf9ded297b85cfde812;hb=HEADhttps://evolvis.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=evolvis-platfrm/evolvisforge.git;a=blob;f=mw-plugin/debian/postinst;h=fa480512bf5b32bcfe5412544159a158e6cfab08;hb=HEAD

The thing to call when triggered is the upgrade_mediawikis shell
function, it’s called from the “triggered” case, but also from
the regular “configure” case. This is suboptimal, but apparently
needed.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg



More information about the Pkg-javascript-devel mailing list