Fixed hard coded strings in stratos-installer setup.sh script
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/86111245 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/86111245 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/86111245 Branch: refs/heads/master Commit: 8611124529b2e047cb27e19a1083d9578df9f2ea Parents: e1a8593 Author: Chamila de Alwis <[email protected]> Authored: Mon Sep 22 19:23:31 2014 +0530 Committer: Nirmal Fernando <[email protected]> Committed: Wed Sep 24 15:52:04 2014 +0530 ---------------------------------------------------------------------- tools/stratos-installer/setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/86111245/tools/stratos-installer/setup.sh ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/setup.sh b/tools/stratos-installer/setup.sh index 331e113..4026673 100755 --- a/tools/stratos-installer/setup.sh +++ b/tools/stratos-installer/setup.sh @@ -529,14 +529,15 @@ fi if [[ !(-d $stratos_extract_path) ]]; then echo "Extracting Apache Stratos" unzip -q $stratos_pack_zip -d $stratos_path - mv -f $stratos_path/apache-stratos-4.1.0-SNAPSHOT $stratos_extract_path + extracted_folder=${stratos_pack_zip%.zip} + mv -f $extracted_folder $stratos_extract_path fi if [[ ($profile = "default" && $config_mb = "true") ]]; then echo "Extracting ActiveMQ" tar -xzf $activemq_pack -C $stratos_path # disable amqp connector to prevent conflicts with openstack - sed -r -i -e 's@^(\s*)(<transportConnector name="amqp".*\s*)$@\1<!--\2-->@g' $stratos_path/apache-activemq-5.9.1/conf/activemq.xml + sed -r -i -e 's@^(\s*)(<transportConnector name="amqp".*\s*)$@\1<!--\2-->@g' $activemq_path/conf/activemq.xml fi general_setup
