Blame tests/p_sendmail/15-test-sendmail.sh

Christoph Galuschka 0cfeec
#!/bin/bash
Christoph Galuschka 0cfeec
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
Christoph Galuschka 0cfeec
Christoph Galuschka 0cfeec
t_Log "Running $0 - testing if /usr/sbin/sendmail for sendmail is sane."
Christoph Galuschka 0cfeec
Christoph Galuschka 0cfeec
mta=$(ls -H /usr/sbin/sendmail)
Christoph Galuschka 0cfeec
Christoph Galuschka 0cfeec
if [ $mta == '/usr/sbin/sendmail' ]
Christoph Galuschka 0cfeec
  then
Christoph Galuschka 0cfeec
  t_Log "link to sendmail seems to be sane"
Christoph Galuschka 0cfeec
  ret_val=0
Christoph Galuschka 0cfeec
else
Christoph Galuschka 0cfeec
  t_Log "link to sendmail seems to be wrong"
Christoph Galuschka 0cfeec
  ret_val=1
Christoph Galuschka 0cfeec
fi
Christoph Galuschka 0cfeec
Christoph Galuschka 0cfeec
t_CheckExitStatus $ret_val