Add default settings to the postscripts table.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1053 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
b50ed51b90
commit
5084e12763
@ -354,6 +354,21 @@ if (( ! -r "/etc/xcat/site.sqlite" ) || $::FORCE){
|
||||
}
|
||||
}
|
||||
|
||||
# create default postscript list in postscripts table
|
||||
if (( ! -r "/etc/xcat/postscripts.sqlite" ) || $::FORCE) {
|
||||
my $chtabcmds;
|
||||
$chtabcmds = "$::XCATROOT/sbin/chtab node=xcatdefaults postscripts.postscripts='syslog,updateflag.awk \$MASTER 3002,remoteshell';";
|
||||
$chtabcmds .= "$::XCATROOT/sbin/chtab node=service postscripts.postscripts='servicenode';";
|
||||
|
||||
my $outref = xCAT::Utils->runcmd("$chtabcmds", 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
xCAT::MsgUtils->message('E', "Could not create postscripts definition.\n");
|
||||
} else {
|
||||
xCAT::MsgUtils->message('I', "Created postscripts definition.\n");
|
||||
}
|
||||
}
|
||||
|
||||
# create basic policy definition.
|
||||
if (( ! -r "/etc/xcat/policy.sqlite" ) || $::FORCE) {
|
||||
my $chtabcmds;
|
||||
|
Loading…
Reference in New Issue
Block a user