Skip to content
Snippets Groups Projects
Commit 1447d1a0 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

die if no sendmail executable is available

parent ce853fc6
Branches
Tags
No related merge requests found
...@@ -113,6 +113,9 @@ sub update_ssp_authsources { ...@@ -113,6 +113,9 @@ sub update_ssp_authsources {
sub mail_notice { sub mail_notice {
my (%args) = @_; my (%args) = @_;
die "unable to send mail, no sendmail executable found"
unless -x '/usr/sbin/sendmail';
open SENDMAIL, open SENDMAIL,
"|/usr/sbin/sendmail -f $args{data}->{from} $args{data}->{to}"; "|/usr/sbin/sendmail -f $args{data}->{from} $args{data}->{to}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment