1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#!/bin/bash # Copyright 2012, 2013 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). # Very dangerous script to wipe on disk directory and mongo of data. set -e mongo --eval "db.dropDatabase(); 'juju database dropped'" juju if [ -d ~/var/index ] then rm -Rf ~/var/index fi curl -XDELETE http://localhost:9200/charms |