diff --git a/cloudlinux7to8/actions/postgres.py b/cloudlinux7to8/actions/postgres.py index 5e5253b..0f3c088 100644 --- a/cloudlinux7to8/actions/postgres.py +++ b/cloudlinux7to8/actions/postgres.py @@ -140,7 +140,7 @@ def _get_service_name(major_version: int) -> str: return f'postgresql-{major_version}' def _prepare_action(self) -> action.ActionResult: - leapp_configs.add_repositories_mapping(["/etc/yum.repos.d/pgdg-redhat-all.repo"]) + leapp_configs.add_repositories_mapping(["/etc/yum.repos.d/pgdg-redhat-all.repo"], skip_disabled=True) for major_version in self._get_versions(): service_name = self._get_service_name(major_version) @@ -156,11 +156,11 @@ def _post_action(self) -> action.ActionResult: for major_version in self._get_versions(): if major_version > _ALMA8_POSTGRES_VERSION: util.logged_check_call(['/usr/bin/dnf', '-q', '-y', 'module', 'disable', 'postgresql']) - util.logged_check_call(['/usr/bin/dnf', 'update']) + util.logged_check_call(['/usr/bin/dnf', '-y', 'update']) util.logged_check_call(['/usr/bin/dnf', 'install', '-y', f'postgresql{major_version}', f'postgresql{major_version}-server']) else: util.logged_check_call(['/usr/bin/dnf', '-q', '-y', 'module', 'enable', 'postgresql']) - util.logged_check_call(['/usr/bin/dnf', 'update']) + util.logged_check_call(['/usr/bin/dnf', '-y', 'update']) util.logged_check_call(['/usr/bin/dnf', 'install', '-y', 'postgresql', 'postgresql-server']) if os.path.exists(self._get_version_enabled_path(major_version)): diff --git a/dist-upgrader b/dist-upgrader index 34ebb95..7ec552c 160000 --- a/dist-upgrader +++ b/dist-upgrader @@ -1 +1 @@ -Subproject commit 34ebb95e90efe468162b59bba7352ab5212db25e +Subproject commit 7ec552c447b20abe1cd55e7210f6f53bccebf2d4