rollupdate defect 3145847 -- for verbose logging, create /var/log/xcat directory if it does not exist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8559 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
bc8f7baf29
commit
940450f8c1
@ -443,6 +443,17 @@ sub rollupdate {
|
||||
}
|
||||
return ( $rc - 1 );
|
||||
}
|
||||
if ($::VERBOSE) {
|
||||
unless ( -d $::LOGDIR) {
|
||||
unless ( File::Path::mkpath($::LOGDIR) ) {
|
||||
my $rsp;
|
||||
push @{ $rsp->{data} }, "Could not create directory $::LOGDIR, logging is disabled.";
|
||||
xCAT::MsgUtils->message( "W", $rsp, $::CALLBACK );
|
||||
$::VERBOSE = 0;
|
||||
$::verbose = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($::VERBOSE) {
|
||||
my $rsp;
|
||||
push @{ $rsp->{data} }, "Running rollupdate command... ";
|
||||
|
Loading…
Reference in New Issue
Block a user