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

@ -16,7 +16,7 @@ update_os
msg_warn "WARNING: This script will run an external installer from a third-party source (swizzin.io)."
msg_warn "The following code is NOT maintained or audited by our repository."
msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:"
msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→https://s5n.sh"
msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://s5n.sh"
echo
read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM
if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then

View File

@ -1437,6 +1437,17 @@ EOF'
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.
description() {
IP=$(pct exec "$CTID" ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)