If files are identical they can be safely removed because
the new version is in /usr/share/pazpar2/xsl
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
Requires: pazpar2
%post
+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 [ $1 = 1 ]; then
/sbin/chkconfig --add pazpar2
/sbin/service pazpar2 start > /dev/null 2>&1