config: Update 5 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 7s

This commit is contained in:
j
2025-12-29 13:23:10 +13:00
parent f0cf3dc122
commit 547fc845a4
5 changed files with 33 additions and 10 deletions

View File

@@ -16,7 +16,10 @@ cd "$SCRIPT_DIR" || _die "Failed to change to script directory"
# Stop and remove containers
docker compose -p "${CONTAINER_NAME}" down -v 2>/dev/null || true
# Remove data directory
rm -rf "${DATA_PATH}"
# Remove data directory using Docker (files are owned by root from containers)
if [ -d "${DATA_PATH}" ]; then
docker run --rm -v "${DATA_PATH}:/data" alpine rm -rf /data/* /data/.[!.]* 2>/dev/null || true
rmdir "${DATA_PATH}" 2>/dev/null || true
fi
echo "Destroyed ${CONTAINER_NAME} and all data."