summaryrefslogtreecommitdiffstats
path: root/components/congress/test-webapp/setup
diff options
context:
space:
mode:
Diffstat (limited to 'components/congress/test-webapp/setup')
-rw-r--r--components/congress/test-webapp/setup/clean_congress_testserver.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/components/congress/test-webapp/setup/clean_congress_testserver.sh b/components/congress/test-webapp/setup/clean_congress_testserver.sh
index debc05b..4376edc 100644
--- a/components/congress/test-webapp/setup/clean_congress_testserver.sh
+++ b/components/congress/test-webapp/setup/clean_congress_testserver.sh
@@ -13,17 +13,25 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-
# This is a cleanup script for installation of the Congress testserver
# on an Ubuntu 14.04 LXC container in the jumphost.
# Presumably something has failed, and any record of the testserver
# needs to be removed, so you can try the install again.
+# On jumphost:
+# source ~/clean_congress_testserver.sh <debug>
+# <debug> indicates whether to turn on command echoing
source ~/admin-openrc.sh <<EOF
openstack
EOF
+
source ~/env.sh
-set -x
+
+if [ $# -gt 0 ]; then
+ if [ $1 == "debug" ]; then set -x #echo on
+ fi
+fi
+
sudo lxc-stop --name trusty-copper
sudo lxc-destroy --name trusty-copper
rm -rf ~/coppertest