feat: Support for Alma, Rocky, CentOS, openSUSE

- Update & upgrade packages before installing
- Alma, Rocky, CentOS: Install `epel-release` package
- Debian 12: Install `python3-systemd` package
- openSUSE: Enable `USERGROUPS_ENAB` in `/etc/login.defs` so groups gets
  auto-created for new users
- fix: Capture unrecognized OS as failure
This commit is contained in:
Pratik Tripathy
2025-10-14 17:17:27 +05:30
parent da8b830534
commit 3ff7ab52c9
2 changed files with 18 additions and 8 deletions

View File

@@ -97,9 +97,13 @@ chmod +x harden.sh
Tested and working on:
- Linux:
- Debian 12, 13
- Debian 13
- Ubuntu 22.04, 24.04
- Fedora 42
- Ubuntu 22.04, 24.04, 24.10
- Rocky Linux
- Alma Linux
- CentOS Stream 10
- openSUSE
- FreeBSD:
- FreeBSD 14.3