Update versions.json
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:
22
cloudflare-tunnel/stop.sh
Executable file
22
cloudflare-tunnel/stop.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1091
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
_check_required_env_vars "CONTAINER_NAME"
|
||||
|
||||
if ! _is_container_exists "$CONTAINER_NAME"; then
|
||||
echo "Container $CONTAINER_NAME does not exist"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! _is_container_running "$CONTAINER_NAME"; then
|
||||
echo "Container $CONTAINER_NAME is not running"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Stopping Cloudflare Tunnel..."
|
||||
_stop_container "$CONTAINER_NAME" || _die "Failed to stop container $CONTAINER_NAME"
|
||||
|
||||
echo "Cloudflare Tunnel stopped"
|
||||
echo ""
|
||||
echo "Note: The tunnel will show as 'Inactive' in your Cloudflare dashboard."
|
||||
echo "Start it again with: ds start [server] cloudflare-tunnel"
|
Reference in New Issue
Block a user