
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 35s
22 lines
656 B
Bash
Executable File
22 lines
656 B
Bash
Executable File
#!/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" |