You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ud...@apache.org on 2013/12/20 16:15:26 UTC

[11/19] git commit: adding unzip pack section

adding unzip pack section


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/2f8a008a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/2f8a008a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/2f8a008a

Branch: refs/heads/master
Commit: 2f8a008a2e655dd02eaecfcd190c005bcdf36c5a
Parents: 21d9aec
Author: Isuru <is...@wso2.com>
Authored: Fri Dec 20 15:17:14 2013 +0530
Committer: Udara Liyanage <ud...@wso2.com>
Committed: Fri Dec 20 20:25:37 2013 -0500

----------------------------------------------------------------------
 .../cartridge-agent/modules/scripts/ec2/cartridge-agent.sh  | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/2f8a008a/products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh
----------------------------------------------------------------------
diff --git a/products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh b/products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh
index 2f31da6..2f774e0 100755
--- a/products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh
+++ b/products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh
@@ -29,6 +29,15 @@ export LOG=/var/log/apache-stratos/cartridge-agent-sh.log
 instance_path=/opt/apache-stratos-cartridge-agent # Cartridge agent home
 ca_exec_path=${instance_path}/cartridge-agent # Cartridge agent executable home
 
+#-----
+# Unzip cartridge agent pack
+#-----
+pushd ${instance_path}
+unzip apache-stratos-cartridge-agent-4.0.0-SNAPSHOT-bin.zip
+mv apache-stratos-cartridge-agent-4.0.0-SNAPSHOT cartridge-agent
+popd
+
+
 # ---------------------------------------------
 # Download payload
 # ---------------------------------------------