Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Updated login.sh to use env vars instead of CLI automation to sign in
Browse files Browse the repository at this point in the history
  • Loading branch information
SEQUOIIA committed Apr 29, 2022
1 parent ba26e38 commit 9e22749
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions server/login.sh
Original file line number Diff line number Diff line change
@@ -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"
#!/bin/ash
export CONFLUENT_CLOUD_EMAIL="$TIKA_CC_USER"
export CONFLUENT_CLOUD_PASSWORD="$TIKA_CC_PASS"
confluent login --save

0 comments on commit 9e22749

Please sign in to comment.