~charmers/charms/bundles/apache-core-batch-processing/bundle

« back to all changes in this revision

Viewing changes to tests/00-setup

[johnsca] Updates to use S3 for Hadoop binaries and improve test reliability

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
to_install=''
4
 
 
5
 
if ! dpkg -s amulet &> /dev/null; then
6
 
    sudo add-apt-repository -y ppa:juju/stable
7
 
    sudo apt-get update
8
 
    to_install="$to_install amulet"
9
 
fi
10
 
 
11
 
if ! dpkg -s python3-yaml &> /dev/null; then
12
 
    to_install="$to_install python3-yaml"
13
 
fi
14
 
 
15
 
if [[ -n "$to_install" ]]; then
16
 
    echo Installing $to_install...
17
 
    sudo apt-get install -y $to_install
18
 
fi