You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ra...@apache.org on 2014/09/23 03:59:25 UTC

git commit: Fixed hard coded strings in stratos-installer setup.sh script

Repository: stratos
Updated Branches:
  refs/heads/master 91f11f3aa -> aecbdf758


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/aecbdf75
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/aecbdf75
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/aecbdf75

Branch: refs/heads/master
Commit: aecbdf75833b163f0c9bc825f44c0f86a0e0b545
Parents: 91f11f3
Author: Chamila de Alwis <ch...@wso2.com>
Authored: Mon Sep 22 19:23:31 2014 +0530
Committer: Akila Perera <ra...@gmail.com>
Committed: Tue Sep 23 07:28:43 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/aecbdf75/tools/stratos-installer/setup.sh
----------------------------------------------------------------------
diff --git a/tools/stratos-installer/setup.sh b/tools/stratos-installer/setup.sh
index 9966c69..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.0.0 $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