mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-09-20 14:56:10 +08:00
e8c6cd5332
Debian/Ubuntu use 'saslpluginviewer`, so we should check for that.
18 lines
270 B
Bash
Executable file
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 |