fortune: fix bin detection

This commit is contained in:
Matt Simerson 2014-11-12 22:36:24 -08:00
parent 7ba86cb5a2
commit 26a77511b0
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ use Qpsmtpd::Constants;
sub register {
my $self = shift;
$self->{_fortune} = '/usr/games/fortune';
return if ! $self->{_fortune};
return if ! -x $self->{_fortune};
# if fortune not installed, don't register hook
$self->register_hook('quit', 'fortune');