2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

Update doxcat discovery script to run on Fedora34 generated image

This commit is contained in:
Mark Gurevich 2021-09-30 17:42:07 -04:00
parent d19f2bb0e3
commit e58074ad4a

View File

@ -17,6 +17,8 @@ fi
if [ -f /var/run/rsyslogd.pid ]; then
kill -TERM `cat /var/run/rsyslogd.pid`
fi
# wait for rsyslog to terminate
sleep 2
if [ $RSYSLOGD_VERSION -ge 8 ]; then
/sbin/rsyslogd
@ -82,6 +84,10 @@ if [ $? -ne 0 ]; then
ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -C '' -N ''
fi
# On some systems /usr/share/empty.sshd needs to be created before calling sshd
if [ ! -e /usr/share/empty.sshd ]; then
mkdir -p /usr/share/empty.sshd
fi
echo 'Protocol 2' >> /etc/ssh/sshd_config
/usr/sbin/sshd
mkdir -p /etc/xcat
@ -300,6 +306,8 @@ fi
if [ -f /var/run/rsyslogd.pid ]; then
kill -TERM `cat /var/run/rsyslogd.pid`
fi
# wait for rsyslog to terminate
sleep 2
if [ "$RSYSLOGD_VERSION" -ge 8 ]; then
/sbin/rsyslogd