From f3926d08850667bac632c40520870551b099eea7 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 30 Nov 2024 11:32:41 +0100 Subject: [PATCH] feat: update with agent setup Signed-off-by: kjuulh --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 25d595f..cbaf566 100644 --- a/install.sh +++ b/install.sh @@ -10,6 +10,7 @@ BINARY_NAME="churn" SERVICE_NAME="${APP_NAME}.service" INSTALL_DIR="/usr/local/bin" CONFIG_DIR="/etc/${APP_NAME}" +CHURN_DISCOVERY="https://churn.internal.prod.kjuulh.app" # Colors for output RED='\033[0;31m' @@ -34,6 +35,8 @@ curl -L "https://api-minio.front.kjuulh.io/${S3_BUCKET}/releases/${APP_NAME}/${A # Make binary executable chmod +x "${INSTALL_DIR}/${BINARY_NAME}" +churn agent setup --discovery "${CHURN_DISCOVERY}" + # Create systemd service file echo "Creating systemd service..." cat > "/etc/systemd/system/${SERVICE_NAME}" << EOF