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