diff options
author | blsaws <bryan.sullivan@att.com> | 2016-05-22 16:12:31 -0700 |
---|---|---|
committer | blsaws <bryan.sullivan@att.com> | 2016-05-22 16:12:31 -0700 |
commit | fa42970a15cb92cff4112b8e89a10300836705a8 (patch) | |
tree | 50ee5d68245077c321f6b92628906b9a107e2bc1 /components/congress/install/bash/clean_congress.sh | |
parent | ba20dd6024489d6a452c52a0a09d8b8e98031b4e (diff) |
Align install and cleanup scripts
JIRA: COPPER-2
Change-Id: Ic052461fb29ec65bd14399aa92a0321be95849a3
Signed-off-by: blsaws <bryan.sullivan@att.com>
Diffstat (limited to 'components/congress/install/bash/clean_congress.sh')
-rw-r--r-- | components/congress/install/bash/clean_congress.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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" |