-Add FTP setup for now.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1232 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-04-30 17:54:13 +00:00
parent a34b602d84
commit 084fc275e4

View File

@ -18,7 +18,7 @@ Provides: xCAT = %{version}
Requires: xCAT-server xCAT-client perl-DBD-SQLite
%ifos linux
Requires: atftp dhcp httpd nfs-utils expect conserver fping bind perl-XML-Parser
Requires: atftp dhcp httpd nfs-utils expect conserver fping bind perl-XML-Parser vsftpd
%endif
%ifarch i386 i586 i686 x86 x86_64
@ -84,6 +84,18 @@ $RPM_INSTALL_PREFIX0/sbin/xcatconfig
%else
. /etc/profile.d/xcat.sh
if [ ! -d /var/ftp/install ]; then
mkdir -p /var/ftp/install
echo "/install /var/ftp/install none bind,defaults 0 0" >> /etc/fstab
mount /var/ftp/install
fi
if [ ! -d /var/ftp/tftpboot ]; then
mkdir -p /var/ftp/tftpboot
echo "/tftpboot /var/ftp/tftpboot none bind,defaults 0 0" >> /etc/fstab
mount /var/ftp/tftpboot
fi
if [ ! -f /install/postscripts/hostkeys/ssh_host_key ]; then
echo Generating SSH1 RSA Key...
/usr/bin/ssh-keygen -t rsa1 -f /install/postscripts/hostkeys/ssh_host_key -C '' -N ''
@ -175,6 +187,9 @@ if [ "$1" = "1" ]; then #Only if installing for the fist time..
$RPM_INSTALL_PREFIX0/sbin/makenetworks
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab key=nameservers site.value=`sed -e 's/#.*//' /etc/resolv.conf|grep nameserver|awk '{printf $2 ","}'|sed -e s/,$//`
chkconfig httpd on
chkconfig vsftpd on
/etc/rc.d/init.d/vsftpd stop
/etc/rc.d/init.d/vsftpd start
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
echo "xCAT is now installed, it is recommended to tabedit networks and set a dynamic ip address range on any networks where nodes are to be discovered"