diff --git a/pleskdistup/actions/grub.py b/pleskdistup/actions/grub.py index 3383022..25cf4c1 100644 --- a/pleskdistup/actions/grub.py +++ b/pleskdistup/actions/grub.py @@ -5,6 +5,7 @@ DEBCONF_CMD = "/usr/bin/debconf-show" + class AssertGrubInstallDeviceExists(action.CheckAction): def __init__(self) -> None: self.name = "check GRUB installation device exists" diff --git a/pleskdistup/main.py b/pleskdistup/main.py index 621c08f..58999de 100644 --- a/pleskdistup/main.py +++ b/pleskdistup/main.py @@ -317,7 +317,6 @@ def try_lock(lock_file: PathType) -> typing.Generator[bool, None, None]: except Exception as ex: log.warn(f"Failed to remove lockfile {lock_file!r}: {ex}") - def exit_signal_handler(signum, frame): # exit will trigger blocks finalization, so lockfile will be removed log.info(f"Received signal {signum}, going to exit...")