From 6ad3f0d70cf5cd1cbecab5d98906f6e71de899bd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 20 Apr 2026 09:45:44 -0400 Subject: [PATCH] Fix mistakes in the node apoption samples --- misc/adoptnode.sh | 2 +- misc/prepadopt.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/adoptnode.sh b/misc/adoptnode.sh index 887ddf4b..3c9154db 100755 --- a/misc/adoptnode.sh +++ b/misc/adoptnode.sh @@ -12,7 +12,7 @@ fi OLDINSECURE=$(nodeattrib $TARGNODE deployment.useinsecureprotocols -b 2> /dev/null |grep -v inherited|awk '{print $3}') nodedefine $TARGNODE deployment.profile=$TARGPROF deployment.useinsecureprotocols= deployment.pendingprofile=$TARGPROF confetty set /nodes/$TARGNODE/deployment/ident_image=create -REMTMP=$(ssh $TARGNODE $(mktemp -d)) +REMTMP=$(ssh $TARGNODE mktemp -d) scp /var/lib/confluent/private/identity_files/$TARGNODE.json $TARGNODE:$REMTMP rm /var/lib/confluent/private/identity_files/$TARGNODE.* rm /var/lib/confluent/private/identity_images/$TARGNODE.* diff --git a/misc/prepadopt.sh b/misc/prepadopt.sh index 19046d3e..54ca9cad 100644 --- a/misc/prepadopt.sh +++ b/misc/prepadopt.sh @@ -19,7 +19,7 @@ if [ "$FWACTIVE" == 1 ]; then systemctl stop firewalld; fi opt/confluent/bin/copernicus > /etc/confluent/confluent.info #opt/confluent/bin/clortho $TARGNODE $DEPLOYSRV > /etc/confluent/confluent.apikey . /etc/confluent/functions -confluentpython opt/confluent/bin/apiclient -i $TAGRIDENT /confluent-api/self/deploycfg2 > /etc/confluent/confluent.deploycfg +confluentpython opt/confluent/bin/apiclient -i $TARGIDENT /confluent-api/self/deploycfg2 > /etc/confluent/confluent.deploycfg if [ "$FWACTIVE" == 1 ]; then systemctl start firewalld; fi cp opt/confluent/bin/apiclient /opt/confluent/bin #curl -sg -H "CONFLUENT_APIKEY: $(cat /etc/confluent/confluent.apikey)" -H "CONFLUENT_NODENAME: $TARGNODE" https://$UDEPLOYSRV/confluent-api/self/deploycfg2 > /etc/confluent/confluent.deploycfg