From 903e8cc92a053dd9bb76355207e988465db05dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eug=C3=A9ne=20Roux?= Date: Tue, 6 Jan 2026 21:18:37 +0200 Subject: [PATCH 1/2] Update clean-lxcs.sh to support Red Hat compatible distros (#10583) --- tools/pve/clean-lxcs.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/pve/clean-lxcs.sh b/tools/pve/clean-lxcs.sh index 16a13a6ff..61ed7abdb 100644 --- a/tools/pve/clean-lxcs.sh +++ b/tools/pve/clean-lxcs.sh @@ -58,6 +58,13 @@ function run_lxc_clean() { find /var/log -type f -delete 2>/dev/null find /tmp -mindepth 1 -delete 2>/dev/null apk update + elif [ -e /etc/redhat-release ]; then + echo -e "${BL}[Info]${GN} Cleaning $name (CentOS)${CL}\n" + yum clean all + find /var/log -type f -delete 2>/dev/null + find /tmp -mindepth 1 -delete 2>/dev/null + yum update + yum upgrade -y else echo -e "${BL}[Info]${GN} Cleaning $name (Debian/Ubuntu)${CL}\n" find /var/cache -type f -delete 2>/dev/null @@ -80,10 +87,10 @@ for container in $(pct list | awk '{if(NR>1) print $1}'); do fi os=$(pct config "$container" | awk '/^ostype/ {print $2}') - # Supported: debian, ubuntu, alpine - if [ "$os" != "debian" ] && [ "$os" != "ubuntu" ] && [ "$os" != "alpine" ]; then + # Supported: debian, ubuntu, alpine, centos + if [ "$os" != "debian" ] && [ "$os" != "ubuntu" ] && [ "$os" != "alpine" ] && [ "$os" != "centos" ]; then header_info - echo -e "${BL}[Info]${GN} Skipping ${RD}$container is not Debian, Ubuntu or Alpine${CL} \n" + echo -e "${BL}[Info]${GN} Skipping ${RD}$container is not Debian, Ubuntu, Alpine or Red Hat Compatible${CL} \n" sleep 1 continue fi From a8886de3963437e5ad2e68bafbe4534ed46ae5cc Mon Sep 17 00:00:00 2001 From: "community-scripts-pr-app[bot]" <189241966+community-scripts-pr-app[bot]@users.noreply.github.com> Date: Tue, 6 Jan 2026 19:18:58 +0000 Subject: [PATCH 2/2] Update CHANGELOG.md (#10609) Co-authored-by: github-actions[bot] --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac8ef7012..5a35b6ede 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,10 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit - iptag: fix syntax error in VM config file parsing [@MickLesk](https://github.com/MickLesk) ([#10598](https://github.com/community-scripts/ProxmoxVE/pull/10598)) + - #### ✨ New Features + + - Update clean-lxcs.sh to support Red Hat compatible distros [@jabofh](https://github.com/jabofh) ([#10583](https://github.com/community-scripts/ProxmoxVE/pull/10583)) + ### 📚 Documentation - chore: bump copyright to 2026 - happy new year [@CrazyWolf13](https://github.com/CrazyWolf13) ([#10585](https://github.com/community-scripts/ProxmoxVE/pull/10585))