mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-12 14:26:55 +00:00
12 lines
434 B
Bash
Executable File
12 lines
434 B
Bash
Executable File
#!/bin/bash
|
|
echo "Confluent first boot is running"
|
|
cp -a /etc/confluent/ssh/* /etc/ssh/
|
|
systemctl restart sshd
|
|
rootpw=$(grep ^rootpassword: /etc/confluent/confluent.deploycfg |awk '{print $2}')
|
|
if [ ! -z "$rootpw" -a "$rootpw" != "null" ]; then
|
|
echo root:$rootpw | chpasswd -e
|
|
fi
|
|
hostnamectl set-hostname $(grep ^NODENAME: /etc/confluent/confluent.info | awk '{print $2}')
|
|
touch /etc/cloud/cloud-init.disabled
|
|
rm -rf /etc/confluent/
|