Deb postinst warns about obsolete pazpar2.cfg
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 15 Jan 2010 12:51:52 +0000 (13:51 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 15 Jan 2010 12:51:52 +0000 (13:51 +0100)
debian/pazpar2.postinst

index bf54741..46690ae 100644 (file)
@@ -11,7 +11,10 @@ if [ -x "/etc/init.d/pazpar2" ]; then
        else
                /etc/init.d/pazpar2 start || exit $?
        fi
-       ln -sf ../services-available/default.xml \
-               /etc/pazpar2/services-enabled/default.xml
+fi
+ln -sf ../services-available/default.xml \
+       /etc/pazpar2/services-enabled/default.xml
+if [ -f "/etc/pazpar2/pazpar2.cfg" ]; then
+       echo "pazpar2.cfg is obsolete. Pazpar2 uses /etc/pazpar2/server.xml"
 fi
 exit 0