diff --git a/CHANGELOG.md b/CHANGELOG.md index 1db270a33..1d957594d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -417,6 +417,10 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit - CR*NMASTER ([#12065](https://github.com/community-scripts/ProxmoxVE/pull/12065)) + - #### 🔧 Refactor + + - Update package management commands in clean-lxcs.sh [@heinemannj](https://github.com/heinemannj) ([#12166](https://github.com/community-scripts/ProxmoxVE/pull/12166)) + ## 2026-02-21 ### 🚀 Updated Scripts diff --git a/tools/pve/clean-lxcs.sh b/tools/pve/clean-lxcs.sh index 1f326de87..9702c1ca5 100644 --- a/tools/pve/clean-lxcs.sh +++ b/tools/pve/clean-lxcs.sh @@ -12,6 +12,7 @@ function header_info() { / / / / _ \/ __ `/ __ \ / / | / / / /___/ / __/ /_/ / / / / / /___/ / /___ \____/_/\___/\__,_/_/ /_/ /_____/_/|_\____/ + EOF } @@ -74,10 +75,10 @@ function run_lxc_clean() { find /var/cache -type f -delete 2>/dev/null find /var/log -type f -delete 2>/dev/null find /tmp -mindepth 1 -delete 2>/dev/null - apt-get -y --purge autoremove - apt-get -y autoclean + apt -y --purge autoremove + apt -y autoclean rm -rf /var/lib/apt/lists/* - apt-get update + apt update fi ' }