mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
890793068c
Carry forward the ssh key and disable passwords so that ssh may safely be enabled during install.
13 lines
442 B
Bash
13 lines
442 B
Bash
#!/bin/bash
|
|
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
|
|
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
|
|
chmod 600 /sysroot/root/.ssh/authorized_keys |