From 52d52c7062a74f83f059567abdfe17c4fba3ca7e Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 1 Sep 2020 15:46:10 -0700 Subject: [PATCH] Add a bit of clean up before second run of postgresql-setup Signed-off-by: Adam Williamson --- tests/role_deploy_database_server.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/role_deploy_database_server.pm b/tests/role_deploy_database_server.pm index 6cf618fe..b93bb3b1 100644 --- a/tests/role_deploy_database_server.pm +++ b/tests/role_deploy_database_server.pm @@ -18,6 +18,7 @@ sub run { # init the db if (script_run "/usr/bin/postgresql-setup --initdb") { # see if this is RHBZ #1872511... + script_run "rm -rf /var/lib/pgsql/data/*"; script_run "dnf -y install glibc-langpack-en", 180; assert_script_run "/usr/bin/postgresql-setup --initdb"; record_soft_failure "postgresql-setup initially failed due to missing langpack - RHBZ #1872511";