#!/bin/sh
cd /root/needpack
groupadd jjhhcluster
groupadd jjhhclient
useradd jjhhcluster -g jjhhcluster
useradd jjhhclient -g jjhhclient
echo -e "`id jjhhcluster`"
echo -e "`id jjhhclient`"
echo -e "install glue start @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@>"
tar jxvf glue-1.0.6.tar.bz2
cd /root/needpack/Reusable-Cluster-Components-glue--glue-1.0.6
echo -e "`pwd`"
echo -e "start ./autogen------------------------------------------->"
echo -e "`./autogen.sh`"
echo -e "start ./configure ---------------------------------------->"
echo -e "`./configure`"
sed -i '64 s/^/\/*/' /root/needpack/Reusable-Cluster-Components-glue--glue-1.0.6/lib/stonith/main.c
sed -i '64 s/$/*\\/' /root/needpack/Reusable-Cluster-Components-glue--glue-1.0.6/lib/stonith/main.c
sed -i '76 s/^/\/*/' /root/needpack/Reusable-Cluster-Components-glue--glue-1.0.6/lib/stonith/main.c
sed -i '81 s/$/*\\/' /root/needpack/Reusable-Cluster-Components-glue--glue-1.0.6/lib/stonith/main.c
sed -i '390 s/^/\/*/' /root/needpack/Reusable-Cluster-Components-glue--glue-1.0.6/lib/stonith/main.c
sed -i '391 s/$/*\\/' /root/needpack/Reusable-Cluster-Components-glue--glue-1.0.6/lib/stonith/main.c
echo -e "start make ------------------------------------------------>"
echo -e "`make`"
echo -e "start make install----------------------------------------->"
echo -e "`make install`"
echo -e "glue-1.0.6 had Installed~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>"
cd /root/needpack
echo -e "install agent start @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@>"
tar jxvf agents-1.0.3.tar.bz2
cd /root/needpack/Cluster-Resource-Agents-agents-1.0.3
echo -e "start ./autogen------------------------------------------->"
echo -e "`./autogen.sh`"
echo -e "start ./configure ---------------------------------------->"
echo -e "`./configure`"
echo -e "->It may take some time for the next auto-correlation to find the relevant package xml..you needed wait for minutes->"
echo -e "start make ------------------------------------------------>"
echo -e "`make`"
echo -e "start make install----------------------------------------->"
echo -e "`make install`"
cd /root/needpack
echo -e "install heartbeat start @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@>"
tar jxvf STABLE-3.0.3.tar.bz2
cd /root/needpack/STABLE-3.0.3
echo -e "start bootstrap------------------------------------------->"
echo -e "`./bootstrap`"
echo -e "start ConfigureMe configure ------------------------------>"
echo -e "`./ConfigureMe configure`"
echo -e "start make ------------------------------------------------>"
echo -e "->It may take some time for the next auto-correlation to find the relevant package xml..you needed wait for minutes->
"
echo -e "`make`"
echo -e "start make install----------------------------------------->"
echo -e "`make install`"
echo -e "heartbeat had Installed~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>"