fortune: fix bin detection
This commit is contained in:
parent
7ba86cb5a2
commit
26a77511b0
@ -6,7 +6,7 @@ use Qpsmtpd::Constants;
|
|||||||
sub register {
|
sub register {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
$self->{_fortune} = '/usr/games/fortune';
|
$self->{_fortune} = '/usr/games/fortune';
|
||||||
return if ! $self->{_fortune};
|
return if ! -x $self->{_fortune};
|
||||||
|
|
||||||
# if fortune not installed, don't register hook
|
# if fortune not installed, don't register hook
|
||||||
$self->register_hook('quit', 'fortune');
|
$self->register_hook('quit', 'fortune');
|
||||||
|
Loading…
Reference in New Issue
Block a user