From 507b52c52beca628cd2e7034cdcc6a650355160d Mon Sep 17 00:00:00 2001 From: SandakovMM Date: Fri, 27 Mar 2026 14:08:01 +0200 Subject: [PATCH 1/2] Make sure dnf update allowed automatically --- cloudlinux7to8/actions/postgres.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudlinux7to8/actions/postgres.py b/cloudlinux7to8/actions/postgres.py index 5e5253b..abd4559 100644 --- a/cloudlinux7to8/actions/postgres.py +++ b/cloudlinux7to8/actions/postgres.py @@ -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)): From 5f4bddbbf927b6589db44a9a9d93843bd0b00c5d Mon Sep 17 00:00:00 2001 From: SandakovMM Date: Fri, 27 Mar 2026 14:09:06 +0200 Subject: [PATCH 2/2] Skip disabled postgresql repositories, since leapp using disabled repos also for some reason --- cloudlinux7to8/actions/postgres.py | 2 +- dist-upgrader | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudlinux7to8/actions/postgres.py b/cloudlinux7to8/actions/postgres.py index abd4559..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) 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