We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ecef2c commit be9bbe9Copy full SHA for be9bbe9
packaging/debian/opensips-mongodb-module.preinst
@@ -1,17 +1,11 @@
1
#!/bin/sh
2
3
#DEBHELPER#
4
-set -e
5
6
-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
7
8
-# check if libmongoc is installed
9
-dpkg -s $LIBMONGOC_NAME > /dev/null
10
-if [ "$?" -ne "0" ]
11
-then
12
- echo "This packages was not built for your release!"
13
- echo "opensips-mongodb-module wasn't installed and you cannot use it in your script!"
14
- exit 1
15
-fi
16
-
17
-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
0 commit comments