2020-06-01 09:08:41 -04:00
|
|
|
#!/bin/sh
|
2020-06-01 10:52:01 -04:00
|
|
|
|
|
|
|
# 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 08:57:08 -04:00
|
|
|
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
|
2020-06-01 09:08:41 -04:00
|
|
|
export mgr profile nodename
|
|
|
|
cp -a /etc/confluent /mnt/sysimage/etc
|
2020-06-26 15:50:15 -04:00
|
|
|
chmod -R og-rwx /mnt/sysimage/etc/confluent
|
2020-06-01 10:52:01 -04:00
|
|
|
cp /tmp/functions /mnt/sysimage/etc/confluent/
|
2020-06-01 09:08:41 -04:00
|
|
|
. /tmp/functions
|
2020-06-02 16:05:44 -04:00
|
|
|
cp /tmp/cryptboot /mnt/sysimage/tmp/
|
2020-06-01 10:52:01 -04:00
|
|
|
|
|
|
|
# Preserve the ssh setup work done for the installer
|
|
|
|
# by copying into the target system and setting up
|
|
|
|
# host based authentication
|
2020-06-01 09:08:41 -04:00
|
|
|
run_remote setupssh.sh
|