summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/generate_bmo_data.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/generate_bmo_data.pl b/docker/generate_bmo_data.pl
index 84b0f0bf8..c58b5746f 100755
--- a/docker/generate_bmo_data.pl
+++ b/docker/generate_bmo_data.pl
@@ -388,7 +388,10 @@ foreach my $group (@groups) {
# Update default security group settings for new products
my $default_security_group = Bugzilla::Group->new({ name => 'core-security' });
-$dbh->do('UPDATE products SET security_group_id = ?', undef, $default_security_group->id);
+if ($default_security_group) {
+ $dbh->do('UPDATE products SET security_group_id = ? WHERE security_group_id IS NULL',
+ undef, $default_security_group->id);
+}
##########################################################################
# Set Parameters