Add tailscale!
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 35s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 35s
This commit is contained in:
17
tailscale/ssh.sh
Executable file
17
tailscale/ssh.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
Reference in New Issue
Block a user