This commit is contained in:
CanbiZ 2025-08-04 11:01:51 +02:00
parent 5094a4d330
commit 72d31f1015
2 changed files with 12 additions and 1 deletions

View File

@ -1437,6 +1437,17 @@ EOF'
fi fi
} }
destroy_lxc() {
if [[ -n "$CTID" ]]; then
echo "Würde Container $CTID entfernen!"
# pct stop "$CTID"
# pct destroy "$CTID"
# msg_ok "Removed this Container"
else
echo "Keine CTID nichts zu entfernen."
fi
}
# This function sets the description of the container. # This function sets the description of the container.
description() { description() {
IP=$(pct exec "$CTID" ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1) IP=$(pct exec "$CTID" ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)