feat: update with agent setup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
b48b1ec886
commit
f3926d0885
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user