2020-06-18 16:36:00 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This script runs after install is complete, but inside the installer
|
|
|
|
# environment. This is useful for carrying work done in pre/during the
|
|
|
|
# installer into the installed environment.
|
|
|
|
|
|
|
|
# It is almost certainly more useful to use post.sh or firstboot.sh
|
|
|
|
# for customization, which will run in a more normal mechanism
|
|
|
|
|
2020-07-01 12:57:08 +00:00
|
|
|
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
|
2020-06-18 16:36:00 +00:00
|
|
|
export mgr profile nodename
|
|
|
|
cp -a /etc/confluent /mnt/sysimage/etc
|
|
|
|
cp /tmp/functions /mnt/sysimage/etc/confluent/
|
|
|
|
. /tmp/functions
|
|
|
|
cp /tmp/cryptboot /mnt/sysimage/tmp/
|
|
|
|
|
|
|
|
# Preserve the ssh setup work done for the installer
|
|
|
|
# by copying into the target system and setting up
|
|
|
|
# host based authentication
|
|
|
|
run_remote setupssh.sh
|