Files
j 0d6c64d7fd
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 15s
Add open-webui dropshell template for AI chat interface
2026-03-15 13:15:46 +13:00

15 lines
565 B
Bash
Executable File

#!/bin/bash
source "${AGENT_PATH}/common.sh"
_check_required_env_vars "CONTAINER_NAME" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAGE_TAG" "DATA_VOLUME"
_check_docker_installed || _die "Docker test failed"
docker pull "$IMAGE_REGISTRY/$IMAGE_REPO:$IMAGE_TAG" || _die "Failed to pull image"
docker volume create "$DATA_VOLUME" 2>/dev/null || true
bash ./stop.sh || _die "Failed to stop container"
_remove_container "$CONTAINER_NAME" || _die "Failed to remove container"
bash ./start.sh || _die "Failed to start container"
echo "Installation of ${CONTAINER_NAME} complete"