2 # Update all node groups
5 require './bacula-backup-lib.pl';
6 exit if (!&has_node_groups());
7 $conf = &get_director_config();
8 $parent = &get_director_config_parent();
9 @nodegroups = &list_node_groups();
11 &lock_file($parent->{'file'});
12 foreach $nodegroup (@nodegroups) {
13 &sync_group_clients($nodegroup);
15 &flush_file_lines($parent->{'file'});
16 &unlock_file($parent->{'file'});