summaryrefslogtreecommitdiff
path: root/utils/rhrd-sanity-check
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rhrd-sanity-check')
-rwxr-xr-xutils/rhrd-sanity-check10
1 files changed, 9 insertions, 1 deletions
diff --git a/utils/rhrd-sanity-check b/utils/rhrd-sanity-check
index ced1d30..9a698d8 100755
--- a/utils/rhrd-sanity-check
+++ b/utils/rhrd-sanity-check
@@ -60,7 +60,15 @@ sub check_groups
next if($group eq $ctx->{'config'}{'specialgroups'}{'allshows'});
next if($group eq $ctx->{'config'}{'specialgroups'}{'allpools'});
next if($group eq $ctx->{'config'}{'specialgroups'}{'alljingles'});
- print " " . $group . "\n";
+
+ my @users = RHRD::rddb::get_group_members($ctx, $group);
+ if(!defined $users[0] && defined $users[1]) {
+ print STDERR "$users[2]\n";
+ return 1;
+ }
+ if(scalar @users == 0) {
+ print " group: '" . $group . "' has no members\n";
+ }
}
return 0;
}