From fa42970a15cb92cff4112b8e89a10300836705a8 Mon Sep 17 00:00:00 2001 From: blsaws Date: Sun, 22 May 2016 16:12:31 -0700 Subject: Align install and cleanup scripts JIRA: COPPER-2 Change-Id: Ic052461fb29ec65bd14399aa92a0321be95849a3 Signed-off-by: blsaws --- components/congress/install/bash/clean_congress.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'components/congress/install/bash/clean_congress.sh') diff --git a/components/congress/install/bash/clean_congress.sh b/components/congress/install/bash/clean_congress.sh index 05afe1f..a322dbe 100644 --- a/components/congress/install/bash/clean_congress.sh +++ b/components/congress/install/bash/clean_congress.sh @@ -29,6 +29,8 @@ echo "OS-specific prerequisite steps" dist=`grep DISTRIB_ID /etc/*-release | awk -F '=' '{print $2}'` +source ~/congress/env.sh + if [ "$dist" == "Ubuntu" ]; then # Ubuntu echo "Ubuntu-based install" @@ -63,7 +65,7 @@ if [ "$CONGRESS_SERVICE" != "" ]; then openstack service delete $CONGRESS_SERVICE fi -echo "Delete congress database" +echo "Delete Congress database" ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $CTLUSER@$CONGRESS_HOST "sudo mysql -e \"DROP DATABASE congress\"; exit" echo "Deactivate virtualenv" -- cgit 1.2.3-korg