bin.sh
上传用户:xfwatch
上传日期:2020-12-14
资源大小:872k
文件大小:1k
- cd ../../
- rm -rf dist
- mkdir dist
- tar xfz blacktie/target/blacktie-*-bin.tar.gz -C dist
- cd dist/blacktie*/
- # MAKE SURE THE ENVIRONMENT VARIABLES ARE SET
- export HOSTNAME_TO_USE=`hostname`
- export VAR=`pwd`
- sed -i "s=REPLACE_WITH_INSTALL_LOCATION=$VAR=g" setenv.sh
- for i in `find . -name btconfig.xml`; do sed -i "s=REPLACE_WITH_INSTALL_LOCATION=$VAR=g" $i; done
- for i in `find . -name btconfig.xml`; do sed -i "s=REPLACE_WITH_HOSTNAME=$HOSTNAME_TO_USE=g" $i; done
- for i in `find . -name pom.xml`; do sed -i "s=REPLACE_WITH_HOSTNAME=$JBOSSAS_IP_ADDR=g" $i; done
- for i in `find . -name btconfig.xml`; do sed -i "s=$HOSTNAME_TO_USE:3528=$JBOSSAS_IP_ADDR:3528=g" $i; done
- for i in `find . -name btconfig.xml`; do sed -i "s=$HOSTNAME_TO_USE:109=$JBOSSAS_IP_ADDR:109=g" $i; done
- . setenv.sh
- ./run_all_samples.sh