~daisy-pluckers/charms/precise/daisy-retracer/trunk

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Evan Dandrea
  • Date: 2013-05-03 15:57:28 UTC
  • mfrom: (28.1.2 daisy-retracer)
  • Revision ID: evan.dandrea@canonical.com-20130503155728-e8k0jbpe1f8urmyo
Merge Liam's branch to add nrpe hooks and clean up the code deployment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
# Unpack tarred Daisy code
35
35
charm_dir="$(pwd)"
36
 
tarball="$charm_dir/files/daisy.tgz"
37
 
 
38
 
if [ -f "$tarball" ]; then
39
 
    tar -C "$CODE_LOCATION" -xvf "$tarball"
40
 
fi
 
36
deploy_code "$charm_dir/files/daisy.tgz" $CODE_LOCATION $DAISY_CODE_DIRS
41
37
 
42
38
if [ ! -e "$LOCAL_CONFIG_PATH" ]; then
43
39
    cp "$CODE_LOCATION/daisy/configuration.py" "$LOCAL_CONFIG_PATH"
45
41
 
46
42
# Unpack tarred Apport snapshot
47
43
apport="$charm_dir/files/apport.tgz"
48
 
 
49
44
if [ -f "$apport" ]; then
50
 
    tar -C "$APPORT_LOCATION" -xvf "$apport"
51
 
 
 
45
    deploy_code "$apport" $APPORT_LOCATION $APPORT_CODE_DIRS
52
46
    # set up the apt/dpkg Apport packaging backend; setup.py build would need more
53
47
    # dependencies
54
48
    cd "$APPORT_LOCATION"