feat: add CentOS Stream support to deployment and maintenance scripts

This commit is contained in:
2026-07-26 00:16:39 +02:00
parent 64e5b32514
commit 4c675cd634
5 changed files with 51 additions and 34 deletions
+4 -3
View File
@@ -2,7 +2,7 @@
# Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
# SPDX-License-Identifier: MIT
"""Idempotent system cleanup and optimisation for Fedora and openEuler.
"""Idempotent system cleanup and optimisation for Fedora, CentOS Stream and openEuler.
Cleans old kernels, DNF caches, systemd journals, temp files, and core dumps.
Every operation checks current state before acting; running the script
@@ -37,10 +37,11 @@ GREEN = "\033[32m"
YELLOW = "\033[33m"
DIM = "\033[2m"
RESET = "\033[0m"
VERSION = "1.3.1"
VERSION = "1.4.0"
SUPPORTED_OS: dict[str, str] = {
"fedora": "Fedora",
"centos": "CentOS Stream",
"openeuler": "openEuler",
}
@@ -1112,7 +1113,7 @@ def print_summary(
def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
"""Parse command-line arguments."""
parser = argparse.ArgumentParser(
description="Idempotent system cleanup and optimisation for Fedora and openEuler",
description="Idempotent system cleanup and optimisation for Fedora, CentOS Stream and openEuler",
formatter_class=argparse.RawDescriptionHelpFormatter,
)
parser.add_argument(