docker-postfix/integration-tests/external-tools-test/tests/test.sh
Bojan Čekrlić e8c6cd5332 Fix: Make sure to use the proper name for pluginviewer based on distro
Debian/Ubuntu use 'saslpluginviewer`, so we should check for that.
2023-10-27 18:04:36 +02:00

18 lines
270 B
Bash
Executable file

#!/bin/sh
set -e
set -x
if ! hash netstat; then
echo "netstat not found!" >2
exit 1
fi
if ! hash nc; then
echo "netcat not found!" >2
exit 1
fi
if ! hash pluginviewer && ! hash saslpluginviewer; then
echo "pluginviewer not found!" >2
exit 1
fi