Rebuild the whole extension.rdf file when updating integrator XPI

tags/wpkg-sogo-addons-31.0.6-0.beta1
Daniel Berteaud 11 years ago
parent 1616fe26e8
commit 61900e6342
  1. 24
      root/etc/e-smith/events/actions/sogo-update-addons

@ -7,7 +7,29 @@ unzip /home/e-smith/files/shares/wpkg/files/softwares/thunderbird_addons/sogo-in
HOSTNAME=$(db configuration get SystemName)
DOMAINNAME=$(db configuration get DomainName)
sed -i -e "s|http://sogo-demo.inverse.ca/|https://$HOSTNAME.$DOMAINNAME/|g" ./chrome/content/extensions.rdf
cat <<HERE > ./chrome/content/extensions.rdf
<?xml version="1.0"?>
<!DOCTYPE RDF>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:isi="http://inverse.ca/sogo-integrator/"
xmlns:em="http://www.mozilla.org/2004/em-rdf#"
xmlns:NC="http://home.netscape.com/NC-rdf#">
<Seq about="http://inverse.ca/sogo-integrator/extensions"
isi:updateURL="https://$HOSTNAME.$DOMAINNAME/plugins/updates.php?plugin=%ITEM_ID%&amp;version=%ITEM_VERSION%&amp;platform=%PLATFORM%">
<li>
<Description
em:id="sogo-integrator@inverse.ca"
em:name="SOGo Integrator"/>
</li>
<li>
<Description
em:id="sogo-connector@inverse.ca"
em:name="SOGo Connector"/>
</li>
</Seq>
</RDF>
HERE
rm -f $TMP/defaults/preferences/*.js
rm -rf $TMP/custom/sogo-demo

Loading…
Cancel
Save