From 7c683a4ea9e58137f9f2f67b6b866e16db342e29 Mon Sep 17 00:00:00 2001 From: linggao Date: Fri, 27 May 2011 15:28:40 +0000 Subject: [PATCH] added site table attribute to not allow xcatd on the mn to bring up vsftpd automatically git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9708 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAsn.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index ae2b4a4fd..6023167c7 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -272,7 +272,10 @@ sub init_plugin { print "\n" ; # make OK prints look better. Only need to do this for the 1st service. - $rc = &setup_FTP(); # setup FTP + my @tmp = xCAT::Utils->get_site_attribute("vsftp"); + if ((!$tmp[0]) || ($tmp[0] !~ /0|NO|No|no|N|n/ )) { + $rc = &setup_FTP(); # setup FTP + } } } return $rc;