fix(uninstall): remove interactive confirmation that breaks curl-pipe installs
--purge-data is already an explicit opt-in; the read prompt causes 'error: aborted' when stdin has no TTY (curl | sudo bash). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4057cebb27
commit
1c559e483b
1 changed files with 0 additions and 2 deletions
|
|
@ -42,8 +42,6 @@ fi
|
||||||
if [[ $PURGE -eq 1 ]]; then
|
if [[ $PURGE -eq 1 ]]; then
|
||||||
info "DESTRUCTIVE: removing manage server volumes..."
|
info "DESTRUCTIVE: removing manage server volumes..."
|
||||||
info " this deletes: scan history, hosts, users, worker binaries"
|
info " this deletes: scan history, hosts, users, worker binaries"
|
||||||
read -r -p " Are you sure? Type 'yes' to confirm: " CONFIRM
|
|
||||||
[[ "$CONFIRM" == "yes" ]] || die "aborted"
|
|
||||||
for vol in triton-manage-db-data triton-manage-bins; do
|
for vol in triton-manage-db-data triton-manage-bins; do
|
||||||
podman volume rm -f "$vol" 2>/dev/null \
|
podman volume rm -f "$vol" 2>/dev/null \
|
||||||
|| docker volume rm -f "$vol" 2>/dev/null \
|
|| docker volume rm -f "$vol" 2>/dev/null \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue