~abentley/juju-ci-tools/client-from-config-4

« back to all changes in this revision

Viewing changes to remove-manual-juju.bash

  • Committer: Curtis Hovey
  • Date: 2015-12-20 15:14:05 UTC
  • Revision ID: curtis@canonical.com-20151220151405-pm3dauunjr2978gz
skip any client-server that starts with 1.26.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    ssh -i $JUJU_HOME/staging-juju-rsa ubuntu@$ip <<"EOT"
6
6
#!/bin/bash
7
7
set -ux
8
 
 
9
 
echo "Cleaning manual machine"
10
 
 
11
8
JUJU_DIR="/var/lib/juju"
12
9
DUMMY_DIR="/var/run/dummy-sink"
13
10
if ps -f -C jujud; then
21
18
if [[ -d $DUMMY_DIR ]]; then
22
19
    sudo rm -r $DUMMY_DIR
23
20
fi
24
 
sudo find /etc/init -name 'juju*' -delete || true
25
 
echo "Cleaning completed"
26
 
exit 0
 
21
sudo find /etc/init -name 'juju*' -delete
27
22
EOT
28
23
done