~jcsackett/charms/precise/charmworld/set-lp-credentials

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Aaron Bentley
  • Date: 2013-07-08 20:17:21 UTC
  • mfrom: (75.1.1 trunk)
  • Revision ID: aaron@canonical.com-20130708201721-szwtp2djypi2d6mi
Tags: charmworld-76
Support slow migrations via prepare-upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    exit 0
12
12
fi
13
13
 
14
 
 
15
 
hooks/stop || true
16
 
 
17
14
if [ -z "$charmworld_source" ]; then
 
15
    hooks/stop || true
18
16
    exit 0
19
17
fi
20
18
 
95
93
 
96
94
# nagios_context may have changed.
97
95
scripts/update-nrpe.py
 
96
cd $project_dir
 
97
if [ $can_ingest == 'true' ]; then
 
98
  if bin/migrations -h|grep prepare-upgrade; then
 
99
    su charmworld -c "INI=$CONFIG_FILE bin/migrations prepare-upgrade --init"
 
100
  fi
 
101
fi
 
102
cd $charm_dir
 
103
hooks/stop || true
98
104
if [ $can_ingest == 'true' ]; then
99
105
    cd $project_dir
100
106
    su charmworld -c "INI=$CONFIG_FILE bin/migrations upgrade --init"