~sinzui/juju-ci-tools/repository

« back to all changes in this revision

Viewing changes to charms/chaos-monkey/hooks/extract_chaos_monkey.bash

  • Committer: seman.said at canonical
  • Date: 2016-03-25 02:02:02 UTC
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: seman.said@canonical.com-20160325020202-6fdn71nhxz9gg1a4
Added charms that supports series in metadata.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash -eux
 
2
cd ${CHARM_DIR}
 
3
chaos_source="$(config-get chaos-source)"
 
4
wget ${chaos_source} --output-document chaos-monkey.tar.gz
 
5
# Delete any existing Chaos Monkey directory.
 
6
[[ -d chaos-monkey ]] && rm -rf chaos-monkey
 
7
# Extract and rename chaos-monkey-master to chaos-monkey
 
8
[[ -f chaos-monkey.tar.gz ]] && tar -zxf chaos-monkey.tar.gz && \
 
9
    mv chaos-monkey-master chaos-monkey