Add 24 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 14s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 14s
This commit is contained in:
19
tailscale-relay/destroy.sh
Executable file
19
tailscale-relay/destroy.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1091
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
_check_required_env_vars "CONTAINER_NAME"
|
||||
|
||||
echo "Destroying Tailscale Relay service and all data..."
|
||||
|
||||
if lxc info "${CONTAINER_NAME}" &>/dev/null; then
|
||||
lxc stop "${CONTAINER_NAME}" --force 2>/dev/null || true
|
||||
lxc delete "${CONTAINER_NAME}" --force 2>/dev/null || true
|
||||
echo "Container deleted."
|
||||
else
|
||||
echo "Container does not exist."
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Tailscale Relay has been completely destroyed."
|
||||
echo "Note: You should also remove this node from your Tailscale admin console at:"
|
||||
echo " https://login.tailscale.com/admin/machines"
|
||||
Reference in New Issue
Block a user