Skip to content

Commit 26b324e

Browse files
authored
Add validation of db encryption keys to cc_ng pre start migrations (#538)
* Add validation of db encryption keys to cc ng pre start * adapt behaviour from pre-start script to be consistent * fix formatting
1 parent 0146952 commit 26b324e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

jobs/cloud_controller_ng/templates/bin/cloud_controller_ng.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ echo 'Running migrations and seeds'
1212
/var/vcap/jobs/cloud_controller_ng/bin/migrate_db
1313
/var/vcap/jobs/cloud_controller_ng/bin/seed_db
1414
echo 'Finished migrations and seeds'
15+
<% if !p('cc.database_encryption.skip_validation') %>
16+
/var/vcap/jobs/cloud_controller_ng/bin/validate_encryption_keys
17+
<% end %>
1518
<% end %>
1619

1720
<% if p('cc.experimental.use_yjit_compiler') %>

0 commit comments

Comments
 (0)