summarize: check more locations to discover QP dir

This commit is contained in:
Matt Simerson 2012-06-27 20:15:13 -04:00 committed by Matt Simerson
parent 1bfebd0bfd
commit 8ef798bbac

View File

@ -293,8 +293,8 @@ sub get_qp_dir {
return "$homedir";
};
foreach my $s ( qw/ smtpd qpsmtpd qpsmtpd-dev / ) {
if ( -d "$homedir/$s/plugins" ) {
return "$homedir/$s";
if ( -d "$homedir/smtpd/plugins" ) {
return "$homedir/smtpd";
};
};
};