logs: improve ability to find logs

This commit is contained in:
Matt Simerson 2012-06-29 20:39:44 -04:00
parent 368b2c0206
commit 672a034fb0

View File

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