#!/bin/bash cd /ext/env/01 tar /ext/cmp/01/zxvf jboss-3.2.3.tgz cd /etc if [ ! -e profile.org ]; then cp profile profile.org fi cat << EOF >> profile export JBOSS_HOME=/ext/env/01/jboss-3.2.3 EOF . /etc/profile if [ ! -e bashrc.org ]; then cp bashrc bashrc.org fi cat << EOF >> bashrc alias jboss_start='\$JBOSS_HOME/bin/run.sh -c custom &' alias jboss_stop='\$JBOSS_HOME/bin/shutdown.sh -S &' EOF . /etc/profile cd $JBOSS_HOME/server cp -r default custom cd custom/deploy \rm hsqldb-ds.xml SAMPLE=$JBOSS_HOME/docs/examples/jca/postgres-ds.xml DTBS=jboss USNM=jboss sed "18s@:/.*]<@:$DTBS<@;20s@x@$USNM@;21s@y@$USNM@" $SAMPLE > postgres-ds.xml cd jms cp $JBOSS_HOME/docs/examples/jms/postgres-jdbc2-service.xml . \rm hsqldb-jdbc2-service.xml cd ../../conf mv standardjaws.xml standardjaws.xml.org sed 's@Hypersonic SQL@PostgreSQL@' standardjaws.xml.org > standardjaws.xml mv standardjbosscmp-jdbc.xml standardjbosscmp-jdbc.xml.org sed 's@Hypersonic SQL@PostgreSQL@' standardjbosscmp-jdbc.xml.org > standardjbosscmp-jdbc.xml mv login-config.xml login-config.xml.org sed '132i \ \ \ \ \ \ \ jboss.jca:service=LocalTxCM,name=PostgresDS\ \ \ \ ' login-config.xml.org > login-config.xml cd ../lib/ #cp /ext/env/0/j2sdk1.4.2_03/jre/lib/ext/pg74jdbc3.jar . rm hsqldb*