bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_exim/10-test-sendmail.sh

Christoph Galuschka d05160
#!/bin/bash
Christoph Galuschka d05160
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
Christoph Galuschka d05160
Christoph Galuschka d05160
t_Log "Running $0 - testing if /usr/sbin/sendmail for exim is sane."
Christoph Galuschka d05160
Christoph Galuschka d05160
if (t_GetPkgRel basesystem | grep -q el5)
Christoph Galuschka d05160
then
Christoph Galuschka d05160
  mta=$(ls -H /usr/sbin/sendmail)
Christoph Galuschka d05160
Christoph Galuschka d05160
  if [ $mta == '/usr/sbin/sendmail' ]
Christoph Galuschka d05160
    then
Christoph Galuschka d05160
    t_Log "link to sendmail seems to be sane"
Christoph Galuschka d05160
    ret_val=0
Christoph Galuschka d05160
  else
Christoph Galuschka d05160
    t_Log "link to sendmail seems to be wrong"
Christoph Galuschka d05160
    ret_val=1
Christoph Galuschka d05160
  fi
Christoph Galuschka d05160
else
Christoph Galuschka d05160
  t_Log "This seems to be a C6 system - skipping"
Christoph Galuschka d05160
  ret_val=0
Christoph Galuschka d05160
fi
Christoph Galuschka d05160
Christoph Galuschka d05160
t_CheckExitStatus $ret_val