summaryrefslogtreecommitdiff
path: root/utils/rhrd-sanity-check
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-07 00:14:21 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2015-10-07 00:14:21 (GMT)
commitfdb8d0f78ad94dbaa352c6bb096cbf63863dfe7d (patch)
tree6443d650cdba451324eec2a81dfdf2d8a1f3cd9c /utils/rhrd-sanity-check
parentddcb9685d9ab3c59cabfdd69614315af668435ec (diff)
minor refactoring
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;
}