diff --git a/packaging/debian/opensips-mongodb-module.preinst b/packaging/debian/opensips-mongodb-module.preinst index 2ecf52ef17..f8fa887787 100644 --- a/packaging/debian/opensips-mongodb-module.preinst +++ b/packaging/debian/opensips-mongodb-module.preinst @@ -1,17 +1,11 @@ #!/bin/sh #DEBHELPER# -set -e -LIBMONGOC_NAME=libmongoc-1.0-0 +dpkg -s libmongoc-1.0-0 > /dev/null && exit 0 +dpkg -s libmongoc-1.0-0t64 > /dev/null && exit 0 -# check if libmongoc is installed -dpkg -s $LIBMONGOC_NAME > /dev/null -if [ "$?" -ne "0" ] -then - echo "This packages was not built for your release!" - echo "opensips-mongodb-module wasn't installed and you cannot use it in your script!" - exit 1 -fi - -exit 0 +# no known library installed +echo "This packages was not built for your release!" +echo "opensips-mongodb-module wasn't installed and you cannot use it in your script!" +exit 1