Update caddy/config/caddyfile/check_caddyfile.sh
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 9s

This commit is contained in:
j
2026-01-15 10:14:48 +13:00
parent dc4d42ed31
commit 4b1657901f
13 changed files with 241 additions and 0 deletions

25
scrutiny/install.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# shellcheck disable=SC1091
source "${AGENT_PATH}/common.sh"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/_volumes.sh"
_check_required_env_vars "CONTAINER_NAME" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAGE_TAG"
# Create volumes
# shellcheck disable=SC2046
create_items $(get_scrutiny_volumes) || _die "Failed to create volumes"
# Pull image
echo "Pulling ${IMAGE_REGISTRY}/${IMAGE_REPO}:${IMAGE_TAG}..."
docker pull "${IMAGE_REGISTRY}/${IMAGE_REPO}:${IMAGE_TAG}" || _die "Failed to pull image"
# Stop and remove existing container
bash ./stop.sh 2>/dev/null || true
_remove_container "$CONTAINER_NAME" 2>/dev/null || true
# Start service
bash ./start.sh || _die "Failed to start container"
echo "Installation complete for service ${CONTAINER_NAME}."
echo "Web UI available at http://localhost:${WEB_PORT:-8080}"