Bump version
[pazpar2-moved-to-github.git] / debian / pazpar2.postinst
1 #!/bin/sh
2 set -e
3
4 if [ "$1" != "configure" ]; then
5     exit 0
6 fi
7 if [ -x "/etc/init.d/pazpar2" ]; then
8         update-rc.d pazpar2 defaults >/dev/null
9         if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
10                 invoke-rc.d pazpar2 start || exit $?
11         else
12                 /etc/init.d/pazpar2 start || exit $?
13         fi
14 fi
15 ln -sf ../services-available/default.xml \
16         /etc/pazpar2/services-enabled/default.xml
17 if [ -f "/etc/pazpar2/pazpar2.cfg" ]; then
18         echo "pazpar2.cfg is obsolete. Pazpar2 uses /etc/pazpar2/server.xml"
19 fi
20 exit 0