2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-13 03:08:14 +00:00

Add ifidx to bash path

The shell based apiclient alternative should write ifidx
as well.
This commit is contained in:
Jarrod Johnson 2020-08-05 09:21:16 -04:00
parent 55a6e3a1e2
commit b796d19a4c

View File

@ -41,6 +41,9 @@ else
if [ ! -f /etc/confluent/confluent.apikey ]; then
/opt/confluent/bin/clortho $nodename $mgr > /etc/confluent/confluent.apikey
fi
if echo $mgr | grep '%' > /dev/null; then
echo $mgr | awk -F% '{print $2}' > /tmp/confluent.ifidx
fi
apikey=$(cat /etc/confluent/confluent.apikey)
if echo $mgr | grep ':' > /dev/null; then
mgr="[$mgr]"