feat: update with agent setup
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-11-30 11:32:41 +01:00
parent b48b1ec886
commit f3926d0885
Signed by: kjuulh
GPG Key ID: D85D7535F18F35FA

View File

@ -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