ignore service setup in plugins when XCATBYPASS is set

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1445 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mellor 2008-05-19 18:15:48 +00:00
parent 5435d6f597
commit 41a7e8ba1f
10 changed files with 50 additions and 0 deletions

View File

@ -31,6 +31,11 @@ Call mountInstall
sub handled_commands
{
# If called in XCATBYPASS mode, don't do any setup
if ($ENV{'XCATBYPASS'}) {
return 0;
}
my $rc = 0;
if (xCAT::Utils->isServiceNode())

View File

@ -33,6 +33,11 @@ Call setup_CONS
sub handled_commands
{
# If called in XCATBYPASS mode, don't do any setup
if ($ENV{'XCATBYPASS'}) {
return 0;
}
my $rc = 0;
if (xCAT::Utils->isServiceNode())
{

View File

@ -31,6 +31,11 @@ Call setup_DHCP
sub handled_commands
{
# If called in XCATBYPASS mode, don't do any setup
if ($ENV{'XCATBYPASS'}) {
return 0;
}
my $rc = 0;
if (xCAT::Utils->isServiceNode())
{

View File

@ -29,6 +29,11 @@ Call setup_DNS
sub handled_commands
{
# If called in XCATBYPASS mode, don't do any setup
if ($ENV{'XCATBYPASS'}) {
return 0;
}
my $rc = 0;
if (xCAT::Utils->isServiceNode())
{

View File

@ -29,6 +29,11 @@ Call setup_TFTP (actually setting up atftp)
sub handled_commands
{
# If called in XCATBYPASS mode, don't do any setup
if ($ENV{'XCATBYPASS'}) {
return 0;
}
my $rc = 0;
# setup vstftp

View File

@ -29,6 +29,11 @@ Call setup_LDAP
sub handled_commands
{
# If called in XCATBYPASS mode, don't do any setup
if ($ENV{'XCATBYPASS'}) {
return 0;
}
my $rc = 0;
if (xCAT::Utils->isServiceNode())
{

View File

@ -31,6 +31,11 @@ Call setup_NFS
sub handled_commands
{
# If called in XCATBYPASS mode, don't do any setup
if ($ENV{'XCATBYPASS'}) {
return 0;
}
my $rc = 0;
if (xCAT::Utils->isServiceNode())

View File

@ -27,6 +27,11 @@ Call setup_NTP
sub handled_commands
{
# If called in XCATBYPASS mode, don't do any setup
if ($ENV{'XCATBYPASS'}) {
return 0;
}
my $rc = 0;
if (xCAT::Utils->isServiceNode())

View File

@ -28,6 +28,11 @@ Call setup_SSH
sub handled_commands
{
# If called in XCATBYPASS mode, don't do any setup
if ($ENV{'XCATBYPASS'}) {
return 0;
}
my $rc = 0;
if (xCAT::Utils->isServiceNode())
{

View File

@ -29,6 +29,11 @@ Call setup_TFTP (actually setting up atftp)
sub handled_commands
{
# If called in XCATBYPASS mode, don't do any setup
if ($ENV{'XCATBYPASS'}) {
return 0;
}
my $rc = 0;
# setup atftp