mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-17 02:58:51 +00:00
8 lines
448 B
Bash
8 lines
448 B
Bash
|
#!/bin/sh
|
||
|
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
|
||
|
apikey=$(cat /etc/confluent/confluent.apikey)
|
||
|
mgr=$(grep mgt_server /etc/confluent/confluent.deploycfg|awk '{print $2}')
|
||
|
curl --capath /etc/confluent/tls -X POST -d 'status: complete' -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $apikey" https://$mgr/confluent-api/self/updatestatus
|
||
|
systemctl disable firstboot
|
||
|
rm /etc/systemd/system/firstboot.service
|