bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_postfix/1-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 postfix 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