mirror of https://github.com/tteck/Proxmox.git
parent
15f5285120
commit
1dc63002ad
|
@ -6,8 +6,8 @@
|
|||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||
|
||||
function header_info() {
|
||||
clear
|
||||
cat <<"EOF"
|
||||
clear
|
||||
cat <<"EOF"
|
||||
________ __ _ ________
|
||||
/ ____/ /__ ____ _____ / / | |/ / ____/
|
||||
/ / / / _ \/ __ `/ __ \ / / | / /
|
||||
|
@ -34,7 +34,6 @@ while true; do
|
|||
esac
|
||||
done
|
||||
clear
|
||||
containers=$(pct list | tail -n +2 | cut -f1 -d' ')
|
||||
function clean_container() {
|
||||
container=$1
|
||||
header_info
|
||||
|
@ -43,7 +42,7 @@ function clean_container() {
|
|||
pct exec $container -- bash -c "apt-get -y --purge autoremove && apt-get -y autoclean && bash <(curl -fsSL https://github.com/tteck/Proxmox/raw/main/misc/clean.sh) && rm -rf /var/lib/apt/lists/* && apt-get update"
|
||||
}
|
||||
|
||||
for container in $containers; do
|
||||
for container in $(pct list | awk '{if(NR>1) print $1}'); do
|
||||
os=$(pct config "$container" | awk '/^ostype/ {print $2}')
|
||||
if [ "$os" != "debian" ] && [ "$os" != "ubuntu" ]; then
|
||||
header_info
|
||||
|
|
Loading…
Reference in New Issue