Update caddy/config/caddyfile/check_caddyfile.sh
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 9s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 9s
This commit is contained in:
16
scrutiny/uninstall.sh
Executable file
16
scrutiny/uninstall.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1091
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
|
||||
_check_required_env_vars "CONTAINER_NAME"
|
||||
|
||||
echo "Uninstalling ${CONTAINER_NAME}..."
|
||||
|
||||
# Stop and remove container (preserves data volumes)
|
||||
_remove_container "$CONTAINER_NAME" || _die "Failed to remove container ${CONTAINER_NAME}"
|
||||
|
||||
# Optionally remove image
|
||||
docker rmi "${IMAGE_REGISTRY}/${IMAGE_REPO}:${IMAGE_TAG}" 2>/dev/null || true
|
||||
|
||||
echo "Uninstallation of ${CONTAINER_NAME} complete."
|
||||
echo "Data volumes preserved. Use destroy.sh to remove all data."
|
||||
Reference in New Issue
Block a user