4 if [ "$1" != "configure" ]; then
7 # add default.xml if there are no enabled services
9 for f in /etc/pazpar2/services-enabled/*.xml; do
10 test -e $f && no_services=false
12 if ${no_services}; then
13 ln -sf ../services-available/default.xml \
14 /etc/pazpar2/services-enabled/default.xml
16 if [ -x "/etc/init.d/pazpar2" ]; then
17 update-rc.d pazpar2 defaults >/dev/null
18 if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
19 invoke-rc.d pazpar2 start || exit $?
21 /etc/init.d/pazpar2 start || exit $?
24 if [ -f "/etc/pazpar2/pazpar2.cfg" ]; then
25 echo "pazpar2.cfg is obsolete. Pazpar2 uses /etc/pazpar2/server.xml"