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:
parent
002146b2f7
commit
0e55d390e3
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user