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:
17
tailscale-relay/uninstall.sh
Executable file
17
tailscale-relay/uninstall.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1091
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
_check_required_env_vars "CONTAINER_NAME"
|
||||
|
||||
echo "Uninstalling Tailscale Relay service..."
|
||||
|
||||
if lxc info "${CONTAINER_NAME}" &>/dev/null; then
|
||||
bash ./stop.sh 2>/dev/null || true
|
||||
echo "Stopping container..."
|
||||
lxc stop "${CONTAINER_NAME}" --force 2>/dev/null || true
|
||||
fi
|
||||
|
||||
echo "Tailscale Relay service has been stopped."
|
||||
echo "The container has been preserved. To completely remove it, run destroy.sh"
|
||||
echo ""
|
||||
echo "You may also want to remove this node from your Tailscale admin console."
|
||||
Reference in New Issue
Block a user