From 72d31f1015569aa6650f441928a9667213117505 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 4 Aug 2025 11:01:51 +0200 Subject: [PATCH] testing --- install/swizzin-install.sh | 2 +- misc/build.func | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/install/swizzin-install.sh b/install/swizzin-install.sh index 88d870c1..a825b00d 100644 --- a/install/swizzin-install.sh +++ b/install/swizzin-install.sh @@ -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 diff --git a/misc/build.func b/misc/build.func index 97ef9a8b..f0a8b71b 100644 --- a/misc/build.func +++ b/misc/build.func @@ -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)