~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/gopkg.in/juju/charmstore.v5-unstable/internal/storetesting/charm-repo/quantal/starsay/hooks/install

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
RES_NAME="for-install"
 
4
RES_PATH=$(2>&1 resource-get $RES_NAME)
 
5
if [ $? -ne 0 ]; then
 
6
    RES_GET_STDERR=$RES_PATH
 
7
    status-set blocked "[resource "'"'"$RES_NAME"'"'"] $RES_GET_STDERR"
 
8
    exit 0
 
9
fi
 
10
 
 
11
set -e
 
12
 
 
13
status-set maintenance "path: $RES_PATH"
 
14
status-set maintenance $(cat $RES_PATH)