Actually setup ftp on upgrades

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1253 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-05-02 18:39:17 +00:00
parent 1093a5043d
commit 5c1bd3b144

View File

@ -110,6 +110,8 @@ fi
if [ -d /install/postscripts/.xcat ]; then
mv /install/postscripts/.xcat /install/postscripts/_xcat
fi
chkconfig vsftpd on
/etc/rc.d/init.d/vsftpd start
if [ "$1" = "1" ]; then #Only if installing for the fist time..
mkdir -p /root/.ssh
chmod 700 /root/.ssh
@ -193,9 +195,6 @@ 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"