verify if opendkim-tools and opendkim is installed

This commit is contained in:
Bruno TATU 2018-04-04 16:16:45 +02:00
parent 3af7d2d679
commit 20d3afb74a

View file

@ -1,5 +1,13 @@
#!/bin/sh
dpkg -l |grep -e 'opendkim-tools' -e 'opendkim' -q
if [ "$?" -ne 0 ]; then
echo "Require opendkim-tools and opendkim"
exit 1
fi
if [ "$#" -ne 1 ]; then
echo "Usage : $0 example.com" >&2
exit 1