X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=debian%2Fpazpar2.postinst;h=9588514c6d0885f77ea33c1258ffc71946cf6093;hb=4ae1e0582f66acaec33dca2c3b023d47d7f431af;hp=c5862f4c5ca8d8ebd6b62d3112bd98be059f385f;hpb=8cffdac106e6e103aeda6a21d48b328c46c58418;p=pazpar2-moved-to-github.git diff --git a/debian/pazpar2.postinst b/debian/pazpar2.postinst index c5862f4..9588514 100644 --- a/debian/pazpar2.postinst +++ b/debian/pazpar2.postinst @@ -4,19 +4,19 @@ set -e if [ "$1" != "configure" ]; then exit 0 fi +for i in cf.xsl marc21.xsl pp2out-to-carrot2.xsl solr-pz2.xsl \ + dads-pz2.xsl marc22.xsl primo-pz2.xsl tmarc.xsl danmarc2.xsl \ + MarcXML2TurboMarc.xsl pz2-ourl-base.xsl unimarc.xsl dc.xsl \ + oai_dc.xsl pz2-ourl-marc21.xsl usmarc.xsl dkabm.xsl opac_turbomarc.xsl \ + pz2-solr.xsl marc21-ourl.xsl opac.xsl server-status-nagios.xsl ; do + dpkg-maintscript-helper rm_conffile /etc/pazpar2/$i 1.6.99.-1.indexdata -- "$@" +done + # add default.xml if there are no enabled services no_services=true for f in /etc/pazpar2/services-enabled/*.xml; do test -e $f && no_services=false done -for f in /usr/share/pazpar2/xsl/*.xsl; do - e=/etc/pazpar2/`basename $f` - if test -f $e; then - if diff $e $f >/dev/null; then - rm $e - fi - fi -done if ${no_services}; then ln -sf ../services-available/default.xml \ /etc/pazpar2/services-enabled/default.xml