You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/03/06 12:49:56 UTC
stratos git commit: Fixing undeploy.sh of tomcat sample application
Repository: stratos
Updated Branches:
refs/heads/master 6c98e416b -> 1abb9a770
Fixing undeploy.sh of tomcat sample application
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/1abb9a77
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/1abb9a77
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/1abb9a77
Branch: refs/heads/master
Commit: 1abb9a770ee7c1148f375daad1fa89d757b19dd6
Parents: 6c98e41
Author: Imesh Gunaratne <im...@apache.org>
Authored: Fri Mar 6 17:19:37 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Fri Mar 6 17:19:49 2015 +0530
----------------------------------------------------------------------
samples/applications/tomcat/scripts/common/undeploy.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/1abb9a77/samples/applications/tomcat/scripts/common/undeploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/tomcat/scripts/common/undeploy.sh b/samples/applications/tomcat/scripts/common/undeploy.sh
index d3a91bb..ebbfabb 100644
--- a/samples/applications/tomcat/scripts/common/undeploy.sh
+++ b/samples/applications/tomcat/scripts/common/undeploy.sh
@@ -6,12 +6,12 @@ host_port=9443
set -e
echo "Undeploying application..."
-curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/single-cartridge-app/undeploy
+curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/tomcat/undeploy
sleep 10
echo "Deleting application..."
-curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/single-cartridge-app
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/tomcat
echo "Removing cartridges..."
curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges/php