From 72e58aa98223a9ac497063610f7bf771bf62ead0 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 15 May 2025 15:33:53 +0200 Subject: [PATCH] Update debian-install.sh --- install/debian-install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install/debian-install.sh b/install/debian-install.sh index e2ece37..78baf6e 100644 --- a/install/debian-install.sh +++ b/install/debian-install.sh @@ -103,3 +103,12 @@ msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned" + +read -p "Remove this script? " prompt +if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then + pct stop "$CTID" + pct remove "$CTID" + msg_ok "Removed this script" +else + msg_warn "Did not remove this script" +fi