Files
sriphat-dataplatform/04-ingestion/stop-airbyte.sh
2026-03-02 21:58:51 +07:00

30 lines
510 B
Bash

#!/bin/bash
# Stop Airbyte services
# This script stops the Airbyte deployment using abctl
set -e
# Colors for output
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${YELLOW}Stopping Airbyte...${NC}"
# Check if abctl is installed
if ! command -v abctl &> /dev/null; then
echo "Error: abctl is not installed"
exit 1
fi
# Stop Airbyte
abctl local down
if [ $? -eq 0 ]; then
echo -e "${GREEN}Airbyte stopped successfully${NC}"
else
echo "Failed to stop Airbyte"
exit 1
fi