From 3437974a42b5e8f78d83e2d3194e2efe91ab0c8b Mon Sep 17 00:00:00 2001 From: Mikhail Sandakov Date: Mon, 9 Dec 2024 15:06:54 +0200 Subject: [PATCH] fixup! Include a preliminary check to ensure no RAID devices are listed in the /etc/fstab file --- pleskdistup/actions/__init__.py | 2 +- pleskdistup/actions/{filesystem.py => mounts.py} | 0 pleskdistup/actions/packages.py | 10 ++++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) rename pleskdistup/actions/{filesystem.py => mounts.py} (100%) diff --git a/pleskdistup/actions/__init__.py b/pleskdistup/actions/__init__.py index 745d5ec..d77f4a5 100644 --- a/pleskdistup/actions/__init__.py +++ b/pleskdistup/actions/__init__.py @@ -5,9 +5,9 @@ from .distupgrade import * from .emails import * from .extensions import * -from .filesystem import * from .grub import * from .mariadb import * +from .mounts import * from .packages import * from .plesk import * from .spamassassin import * diff --git a/pleskdistup/actions/filesystem.py b/pleskdistup/actions/mounts.py similarity index 100% rename from pleskdistup/actions/filesystem.py rename to pleskdistup/actions/mounts.py diff --git a/pleskdistup/actions/packages.py b/pleskdistup/actions/packages.py index 4eb0b5a..f81cdb0 100644 --- a/pleskdistup/actions/packages.py +++ b/pleskdistup/actions/packages.py @@ -82,3 +82,13 @@ def estimate_post_time(self) -> int: def estimate_revert_time(self) -> int: return self.estimate_prepare_time() + + +class AssertEPELRpmRepositoryPresent(action.CheckAction): + def __init__(self): + self.name = "checking if EPEL RPM repository file is present" + self.description = """The EPEL RPM repository is not present at expected /etc/yum.repo.d/epel.repo. +The EPEL repository is required by Plesk and conversion process +Please install the EPEL repository by running the following command: +\tyum install epel-release +""" \ No newline at end of file