Merge branch 'master' of git.grml.org:grml-tips
[grml-tips.git] / debian / postinst
index 585579a..c4dc5c2 100755 (executable)
@@ -1,15 +1,17 @@
 #!/bin/sh -e
 
-if [ -x /usr/bin/grml-tips-tags ]
+if [ -x /usr/lib/grml-tips/grml-tips-tags ]
 then
        echo -n "Generating grml-tips tag database: "
-       if grml-tips-tags
+       if /usr/lib/grml-tips/grml-tips-tags
        then
                echo "Ok"
        else
-               echo "Failed"
+               echo "Failed" >&2
+               exit 1
        fi
 fi
 
- #DEBHELPER#
- exit 0
+#DEBHELPER#
+
+exit 0