From: Dinko Korunic Date: Fri, 22 May 2009 10:32:41 +0000 (+0200) Subject: * Ispravak za cp_mail: pokusava se pozvati sendmail wrapper cak i kad ne X-Git-Tag: debian/3.0.0~5 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=0bfcdc144e63167d37578c6c33b6c4113d1f8c5b;p=carnet-tools-cn.git * Ispravak za cp_mail: pokusava se pozvati sendmail wrapper cak i kad ne postoji na sustavu --- diff --git a/debian/changelog b/debian/changelog index 62bc447..3834900 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +carnet-tools-cn (2.8.3) stable; urgency=low + + * Ispravak za cp_mail: pokusava se pozvati sendmail wrapper cak i kad ne + postoji na sustavu + + -- Dinko Korunic Fri, 22 May 2009 12:32:16 +0200 + carnet-tools-cn (2.8.2) stable; urgency=low * Ispravak za cp_mail gdje je zalutao whitespace i uzrokovao blacklisting od diff --git a/functions.sh b/functions.sh index 38cd05f..24c7cf9 100644 --- a/functions.sh +++ b/functions.sh @@ -337,9 +337,11 @@ is included below. ---------- ${CP_NOTICE}----------" - - echo "$CP_NOTICE" | /usr/sbin/sendmail -t -oi & - sleep 1 + + if [ -x /usr/sbin/sendmail ]; then + echo "$CP_NOTICE" | /usr/sbin/sendmail -t -oi & + sleep 1 + fi fi }