From e7dff94ebb4c3b0cb04507cb0a0fae9fe6623b5f Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 14 Apr 2008 12:11:49 +0000 Subject: [PATCH] Add default poscript setting in postscripts table. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1029 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/xCAT.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index d67de5236..ec1348d4d 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -123,6 +123,9 @@ if [ "$1" = "1" ]; then #Only if installing for the fist time.. XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab key=installdir site.value=/install XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab key=timezone site.value=`grep ^ZONE /etc/sysconfig/clock|cut -d= -f 2|sed -e 's/"//g'` fi + if [ ! -r /etc/xcat/postscripts.sqlite ]; then + XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab node=xcatdefaults postscripts.postscripts='updateflag.awk \$MASTER 3002,remoteshell' + fi if [ ! -r /etc/xcat/policy.sqlite ]; then XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab priority=1 policy.name=root policy.rule=allow XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab priority=2 policy.commands=getbmcconfig policy.rule=allow