Files
dropshell-templates/immich/uninstall.sh
j 878938307c
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 12s
Add 1 and update 7 files
2026-01-15 11:42:04 +13:00

20 lines
559 B
Bash
Executable File

#!/bin/bash
# shellcheck disable=SC1091
source "${AGENT_PATH}/common.sh"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/_compose.sh"
_check_required_env_vars "CONTAINER_NAME"
echo "Uninstalling ${CONTAINER_NAME}..."
cd "$SCRIPT_DIR" || _die "Failed to change to script directory"
# Stop and remove containers (preserves volumes)
if [ -f docker-compose.yml ]; then
docker_compose down 2>/dev/null || true
fi
echo "Uninstallation of ${CONTAINER_NAME} complete."
echo "Data preserved in upload and database locations."