2020-04-09 16:18:39 -04:00
|
|
|
#!/bin/bash
|
2020-04-15 13:30:47 -04: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 16:19:23 -04: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
|
|
|
|
cp /ssh/authorized_keys /sysroot/root/.ssh
|
2020-04-16 11:54:40 -04:00
|
|
|
chmod 600 /sysroot/root/.ssh/authorized_keys
|
2020-04-16 12:23:45 -04:00
|
|
|
cp /etc/confluent.apikey /sysroot/etc/
|
|
|
|
cp /tmp/confluent.deploycfg /sysroot/tmp/
|