mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-28 08:11:45 +00:00
Have prepivot stage accounts
Carry forward the ssh key and disable passwords so that ssh may safely be enabled during install.
This commit is contained in:
parent
09700626b5
commit
890793068c
@ -5,3 +5,9 @@ while [ -h $BUNDLENAME ]; do
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user