defect 2948368: use getTftpDir to get tftp dir

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5270 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2010-02-24 07:58:08 +00:00
parent e6ea6af7e0
commit 25553e49c7

View File

@ -922,12 +922,7 @@ sub setup_TFTP
}
$stab->close;
# read tftpdir directory from database
$tftpdir = "/tftpboot"; # default
my @tftpdir1 = xCAT::Utils->get_site_attribute("tftpdir");
if (defined($tftpdir1[0]))
{
$tftpdir = $tftpdir1[0];
}
$tftpdir = xCAT::Utils->getTftpDir();
if (!(-e $tftpdir))
{
mkdir($tftpdir);