You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_exim/10-test-sendmail.sh

24 lines
505 B

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