From 9e2274901b3eab78528ab030ec53531fb2a67ad9 Mon Sep 17 00:00:00 2001 From: "Emil H. Clausen" Date: Fri, 29 Apr 2022 14:24:32 +0200 Subject: [PATCH] Updated login.sh to use env vars instead of CLI automation to sign in --- server/login.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/server/login.sh b/server/login.sh index e2c33dd..4cecb5a 100755 --- a/server/login.sh +++ b/server/login.sh @@ -1,15 +1,4 @@ -#!/usr/bin/expect -spawn confluent login - -expect "Email: " - -send -- "$env(TIKA_CC_USER)\r" - -expect "Password: " - -send -- "$env(TIKA_CC_PASS)\r" - -set timeout 600 -expect eof - -send_user "Confluent cloud login successful\n" \ No newline at end of file +#!/bin/ash +export CONFLUENT_CLOUD_EMAIL="$TIKA_CC_USER" +export CONFLUENT_CLOUD_PASSWORD="$TIKA_CC_PASS" +confluent login --save