2020-04-09 20:18:39 +00:00
|
|
|
#!/bin/bash
|
2020-04-15 17:30:47 +00:00
|
|
|
BUNDLENAME=/sysroot/etc/pki/tls/certs/ca-bundle.crt
|
|
|
|
while [ -h $BUNDLENAME ]; do
|
|
|
|
BUNDLENAME=/sysroot/$(readlink $BUNDLENAME)
|
|
|
|
done
|
|
|
|
|
|
|
|
cat /etc/pki/tls/certs/ca-bundle.crt > $BUNDLENAME
|
2020-04-15 20:19:23 +00:00
|
|
|
sed -i 's/install::/install:*:/' /sysroot/etc/shadow
|
|
|
|
sed -i 's/root::/root:*:/' /sysroot/etc/shadow
|
|
|
|
mkdir -p /sysroot/root/.ssh
|
|
|
|
chmod 700 /sysroot/root/.ssh
|
2020-04-20 13:39:36 +00:00
|
|
|
cat /ssh/*.rootpubkey > /sysroot/root/.ssh/authorized_keys
|
2020-04-16 15:54:40 +00:00
|
|
|
chmod 600 /sysroot/root/.ssh/authorized_keys
|
2020-04-20 13:39:36 +00:00
|
|
|
mkdir -p /sysroot/etc/ssh/
|
|
|
|
for i in /ssh/*.ca; do
|
|
|
|
echo '@cert-authority *' $(cat $i) >> /sysroot/etc/ssh/ssh_known_hosts
|
|
|
|
done
|
2020-04-16 16:23:45 +00:00
|
|
|
cp /etc/confluent.apikey /sysroot/etc/
|
2020-04-16 16:40:35 +00:00
|
|
|
cp /tmp/confluent.deploycfg /tmp/confluent.info /sysroot/etc/
|