From 94f2b618bd6bdcd2f06410fc8777a963d6c65d77 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 30 Jun 2020 16:59:52 -0400 Subject: [PATCH] Also copy api key to usable location. --- .../initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh index ba8fb79b..f3fec37b 100644 --- a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh +++ b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh @@ -27,11 +27,11 @@ if [ -z "$apikey" ]; then fi oum=$(umask) umask 0077 +mkdir /etc/confluent echo $apikey > /etc/confluent.apikey umask $oum mgr="[$mgr]" -mkdir /etc/confluent -cp /tmp/confluent.info /etc/confluent/ +cp /tmp/confluent.info /etc/confluent.apikey /etc/confluent/ /usr/libexec/platform-python /opt/confluent/bin/apiclient /confluent-api/self/deploycfg > /tmp/confluent.deploycfg dnsdomain=$(grep ^dnsdomain: /tmp/confluent.deploycfg)