Initial Nextcloud Docker setup for nxt.bhatfamily.in
This commit is contained in:
21
scripts/uninstall.sh
Executable file
21
scripts/uninstall.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
# scripts/uninstall.sh
|
||||
set -euo pipefail
|
||||
|
||||
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
echo "==> Stopping and removing Docker containers/volumes..."
|
||||
|
||||
cd "${REPO_DIR}"
|
||||
|
||||
if command -v docker compose >/dev/null 2>&1; then
|
||||
docker compose down -v
|
||||
else
|
||||
docker-compose down -v
|
||||
fi
|
||||
|
||||
echo "==> (Optional) Remove persistent data volumes manually if desired:"
|
||||
echo " docker volume ls | grep nextcloud"
|
||||
echo " docker volume rm <volume_name> # if you want to fully wipe data"
|
||||
|
||||
echo "Uninstall complete."
|
||||
Reference in New Issue
Block a user