-
Notifications
You must be signed in to change notification settings - Fork 584
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debian: mongodb package should check for libmongoc-1.0-0t64 package too
- Loading branch information
1 parent
5ecef2c
commit be9bbe9
Showing
1 changed file
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |