Add a bit of clean up before second run of postgresql-setup

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-09-01 15:46:10 -07:00
parent a3806af8ee
commit 52d52c7062
1 changed files with 1 additions and 0 deletions

View File

@ -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";