2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 04:32:11 +00:00

Fix up post output to console

This commit is contained in:
Jarrod Johnson 2021-04-28 13:46:26 -04:00
parent 002146b2f7
commit 0e55d390e3
4 changed files with 12 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
tail -f ${0}.log >& /dev/tty &
tail -f /tmp/nochroot/${0}.log >& /dev/tty &
# need to copy over ssh key info
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
apikey=$(cat /etc/confluent/confluent.apikey)

View File

@ -13,7 +13,11 @@ cp -a /etc/confluent /mnt/sysimage/etc
chmod -R og-rwx /mnt/sysimage/etc/confluent
cp /tmp/functions /mnt/sysimage/etc/confluent/
. /tmp/functions
cp /tmp/cryptboot /mnt/sysimage/tmp/
if [ -f /tmp/cryptboot ]; then
cp /tmp/cryptboot /mnt/sysimage/tmp/
fi
mkdir -p /mnt/sysimage/tmp/nochroot/tmp
mount -o bind,ro /tmp/ /mnt/sysimage/tmp/nochroot/tmp
echo Port 2222 >> /etc/ssh/sshd_config.anaconda
echo Match LocalPort 22 >> /etc/ssh/sshd_config.anaconda
echo " ChrootDirectory /mnt/sysimage" >> /etc/ssh/sshd_config.anaconda

View File

@ -1,5 +1,5 @@
#!/bin/sh
tail -f ${0}.log >& /dev/tty &
tail -f /tmp/nochroot/${0}.log >& /dev/tty &
# need to copy over ssh key info
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
apikey=$(cat /etc/confluent/confluent.apikey)

View File

@ -13,7 +13,11 @@ cp -a /etc/confluent /mnt/sysimage/etc
chmod -R og-rwx /mnt/sysimage/etc/confluent
cp /tmp/functions /mnt/sysimage/etc/confluent/
. /tmp/functions
cp /tmp/cryptboot /mnt/sysimage/tmp/
if [ -f /tmp/cryptboot ]; then
cp /tmp/cryptboot /mnt/sysimage/tmp/
fi
mkdir -p /mnt/sysimage/tmp/nochroot/tmp
mount -o bind,ro /tmp/ /mnt/sysimage/tmp/nochroot/tmp
echo Port 2222 >> /etc/ssh/sshd_config.anaconda
echo Match LocalPort 22 >> /etc/ssh/sshd_config.anaconda
echo " ChrootDirectory /mnt/sysimage" >> /etc/ssh/sshd_config.anaconda