Files
appstore/apps/erispulse/latest/scripts/uninstall.sh
T
okxlin 264498885a Harden ErisPulse uninstall script
Keep the PR shell compatibility improvement, but support both Docker Compose v2 and docker-compose while returning a failure when no Compose command is available.

Refs: #4371
2026-06-30 11:16:09 +08:00

16 lines
379 B
Bash
Executable File

#!/usr/bin/env bash
if [ -n "${BASH_VERSION:-}" ]; then
set -euo pipefail
else
set -eu
fi
if docker compose version >/dev/null 2>&1; then
docker compose down --volumes
elif command -v docker-compose >/dev/null 2>&1; then
docker-compose down --volumes
else
echo "[ErisPulse] Docker Compose is not available. Manual cleanup may be required." >&2
exit 1
fi