mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-27 21:00:40 +00:00
Merge branch 'main' of https://github.com/community-scripts/ProxmoxVE
This commit is contained in:
@@ -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))
|
- 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
|
### 📚 Documentation
|
||||||
|
|
||||||
- chore: bump copyright to 2026 - happy new year [@CrazyWolf13](https://github.com/CrazyWolf13) ([#10585](https://github.com/community-scripts/ProxmoxVE/pull/10585))
|
- chore: bump copyright to 2026 - happy new year [@CrazyWolf13](https://github.com/CrazyWolf13) ([#10585](https://github.com/community-scripts/ProxmoxVE/pull/10585))
|
||||||
|
|||||||
+10
-3
@@ -58,6 +58,13 @@ function run_lxc_clean() {
|
|||||||
find /var/log -type f -delete 2>/dev/null
|
find /var/log -type f -delete 2>/dev/null
|
||||||
find /tmp -mindepth 1 -delete 2>/dev/null
|
find /tmp -mindepth 1 -delete 2>/dev/null
|
||||||
apk update
|
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
|
else
|
||||||
echo -e "${BL}[Info]${GN} Cleaning $name (Debian/Ubuntu)${CL}\n"
|
echo -e "${BL}[Info]${GN} Cleaning $name (Debian/Ubuntu)${CL}\n"
|
||||||
find /var/cache -type f -delete 2>/dev/null
|
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
|
fi
|
||||||
|
|
||||||
os=$(pct config "$container" | awk '/^ostype/ {print $2}')
|
os=$(pct config "$container" | awk '/^ostype/ {print $2}')
|
||||||
# Supported: debian, ubuntu, alpine
|
# Supported: debian, ubuntu, alpine, centos
|
||||||
if [ "$os" != "debian" ] && [ "$os" != "ubuntu" ] && [ "$os" != "alpine" ]; then
|
if [ "$os" != "debian" ] && [ "$os" != "ubuntu" ] && [ "$os" != "alpine" ] && [ "$os" != "centos" ]; then
|
||||||
header_info
|
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
|
sleep 1
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user