Skip to content

Commit be9bbe9

Browse files
committed
debian: mongodb package should check for libmongoc-1.0-0t64 package too
1 parent 5ecef2c commit be9bbe9

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
#!/bin/sh
22

33
#DEBHELPER#
4-
set -e
54

6-
LIBMONGOC_NAME=libmongoc-1.0-0
5+
dpkg -s libmongoc-1.0-0 > /dev/null && exit 0
6+
dpkg -s libmongoc-1.0-0t64 > /dev/null && exit 0
77

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
8+
# no known library installed
9+
echo "This packages was not built for your release!"
10+
echo "opensips-mongodb-module wasn't installed and you cannot use it in your script!"
11+
exit 1

0 commit comments

Comments
 (0)