mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-19 00:53:19 +00:00
Fix trivial instances of wrong autoconf exitcodes
This commit is contained in:
parent
99f6979f22
commit
e4cd049b01
152 changed files with 225 additions and 344 deletions
|
@ -44,14 +44,13 @@ if (defined($ARGV[0]))
|
|||
if (!$dbh)
|
||||
{
|
||||
print "no\n";
|
||||
exit 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
print "yes\n";
|
||||
exit 0;
|
||||
}
|
||||
$dbh->disconnect();
|
||||
exit 0;
|
||||
}
|
||||
|
||||
if ($ARGV[0] eq 'config')
|
||||
|
|
|
@ -76,7 +76,7 @@ if (exists $ARGV[0]) {
|
|||
# Check for DBD::Pg
|
||||
if (! eval "require DBD::Pg;") {
|
||||
print "no (DBD::Pg not found)";
|
||||
exit 1;
|
||||
exit 0;
|
||||
}
|
||||
# Then we try to detect Postgres presence by connecting to
|
||||
# 'template1'.
|
||||
|
@ -88,7 +88,7 @@ if (exists $ARGV[0]) {
|
|||
exit 0;
|
||||
} else {
|
||||
print "no (Can't connect to given host, please check environment settings)\n";
|
||||
exit 1;
|
||||
exit 0;
|
||||
}
|
||||
} elsif ($ARGV[0] eq 'debug') {
|
||||
# Set debug flag
|
||||
|
|
|
@ -31,7 +31,7 @@ if (exists $ARGV[0]) {
|
|||
# Check for DBD::Pg
|
||||
if (! eval "require DBD::Pg;") {
|
||||
print "no (DBD::Pg not found)";
|
||||
exit 1;
|
||||
exit 0;
|
||||
}
|
||||
# Then we try to detect Postgres presence by connecting to
|
||||
# 'template1'.
|
||||
|
@ -43,7 +43,7 @@ if (exists $ARGV[0]) {
|
|||
exit 0;
|
||||
} else {
|
||||
print "no (Can't connect to given host, please check environment settings)\n";
|
||||
exit 1;
|
||||
exit 0;
|
||||
}
|
||||
} elsif ($ARGV[0] and $ARGV[0] eq 'debug') {
|
||||
# Set config flag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue