X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FDEPLOY.sh;h=3e3cbd9504a4587516928e4a632b10c6428a1a6f;hb=603b76b5dc02acdfd87c58c51b6d48ae1858f58d;hp=7963f07d36c06f1c24c79b6015103f0bc4121c38;hpb=74730c7d0e4f713c932d6b06a07644d1c3c6c6c1;p=anna.git diff --git a/example/diameter/launcher/DEPLOY.sh b/example/diameter/launcher/DEPLOY.sh index 7963f07..3e3cbd9 100755 --- a/example/diameter/launcher/DEPLOY.sh +++ b/example/diameter/launcher/DEPLOY.sh @@ -65,9 +65,9 @@ STARTED=\`pgrep \$EXE 2>/dev/null\` [ \$? -eq 0 ] && { echo "Already started!"; echo "\$STARTED" ; exit 1 ; } ./pre-start.sh 0> launcher.trace -rm -f counters/* +rm -f counters/* test-reports/* # Execution line: -./\$EXE --services services.xml --cntDir counters $other & +./\$EXE --services services.xml --cntDir counters --tmDir test-reports $other & echo \$! > .pid EOF @@ -138,6 +138,7 @@ for STACKMGMT_EXEC in ${STACKMGMT_EXECS[@]}; do echo "not found" done [ -z "$available" ] && _exit "Anna Diameter Stack Management Tool is not installed neither linked. See README.md (Install section)." +STACKMGMT_EXEC=`readlink -f $STACKMGMT_EXEC` [ ! -d $SETUPS_DIR ] && _exit "Diameter stacks not found ($SETUPS_DIR)." @@ -199,7 +200,8 @@ mkdir -p $DPATH mkdir -p $DPATH/stacks mkdir -p $DPATH/DTDs mkdir -p $DPATH/counters -[ "option" = "b" ] && mkdir -p $DPATH/services +mkdir -p $DPATH/test-reports +[ "$option" = "b" ] && mkdir -p $DPATH/services if [ "$EXEC" = "$EXEC_installed" ] then ln -s $EXEC_installed $DPATH/ADML-launcher @@ -213,7 +215,7 @@ cp $SETUPS_DIR/readme.txt $DPATH/stacks cp $MSGDTD $DPATH/DTDs cp $DCTDTD $DPATH/DTDs cp $SRVDTD $DPATH/DTDs -[ "option" = "b" ] && cp $SERVICES/* $DPATH/services +[ "$option" = "b" ] && cp $SERVICES/* $DPATH/services echo "Preparing ..." cd $DPATH