build.func

This commit is contained in:
Michel Roegl-Brunner 2025-05-15 15:57:46 +02:00
parent 918c5051b1
commit 2b14665c29

View File

@ -1428,10 +1428,10 @@ EOF
systemctl start ping-instances.service systemctl start ping-instances.service
fi fi
read -p "Remove this script? <y/N> " prompt read -p "Remove this Container? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
pct stop "$CTID" pct stop "$CTID"
pct remove "$CTID" pct destroy "$CTID"
msg_ok "Removed this script" msg_ok "Removed this script"
else else
msg_warn "Did not remove this script" msg_warn "Did not remove this script"