Skip to content

Commit

Permalink
debian: mongodb package should check for libmongoc-1.0-0t64 package too
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Feb 7, 2025
1 parent 5ecef2c commit be9bbe9
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions packaging/debian/opensips-mongodb-module.preinst
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

0 comments on commit be9bbe9

Please sign in to comment.