
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 35s
17 lines
473 B
Bash
Executable File
17 lines
473 B
Bash
Executable File
#!/bin/bash
|
|
# shellcheck disable=SC1091
|
|
source "${AGENT_PATH}/common.sh"
|
|
_check_required_env_vars "CONTAINER_NAME"
|
|
|
|
# Tailscale SSH Script - Access container shell
|
|
|
|
if ! _is_container_running "$CONTAINER_NAME"; then
|
|
echo "Error: Tailscale container is not running."
|
|
echo "Start it with: ${SERVICE_PATH}/start.sh"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Entering Tailscale container shell..."
|
|
echo "Type 'exit' to leave the container."
|
|
echo ""
|
|
docker exec -it ${CONTAINER_NAME} /bin/sh |