Update clean-lxcs.sh
This commit is contained in:
parent
dde33d6d78
commit
bda070ae07
@ -51,7 +51,7 @@ function clean_container() {
|
|||||||
if [ "$os" = "alpine" ]; then
|
if [ "$os" = "alpine" ]; then
|
||||||
pct exec "$container" -- ash -c "apk update && apk cache clean && rm -rf /var/cache/apk/*"
|
pct exec "$container" -- ash -c "apk update && apk cache clean && rm -rf /var/cache/apk/*"
|
||||||
else
|
else
|
||||||
pct exec "$container" -- bash -c "apt-get -y --purge autoremove && apt-get -y autoclean && bash <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/clean.sh) && rm -rf /var/lib/apt/lists/* && apt-get update"
|
pct exec "$container" -- bash -c "apt-get -y --purge autoremove && apt-get -y autoclean && bash <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/tools/pve/clean.sh) && rm -rf /var/lib/apt/lists/* && apt-get update"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user