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:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user