Merge lp:~abentley/charms/precise/charmworld/es-update into lp:~juju-jitsu/charms/precise/charmworld/trunk

Proposed by Aaron Bentley
Status: Merged
Approved by: Curtis Hovey
Approved revision: 72
Merged at revision: 72
Proposed branch: lp:~abentley/charms/precise/charmworld/es-update
Merge into: lp:~juju-jitsu/charms/precise/charmworld/trunk
Diff against target: 13 lines (+3/-0)
1 file modified
hooks/config-changed (+3/-0)
To merge this branch: bzr merge lp:~abentley/charms/precise/charmworld/es-update
Reviewer Review Type Date Requested Status
Curtis Hovey (community) code Approve
Review via email: mp+162389@code.launchpad.net

Commit message

Use es-update when changing config.

Description of the change

Run the es-update script introduced in lp:~abentley/charmworld/migrate if it exists.

To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) wrote :

thank you.

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/config-changed'
2--- hooks/config-changed 2013-04-26 21:18:43 +0000
3+++ hooks/config-changed 2013-05-03 16:13:44 +0000
4@@ -86,6 +86,9 @@
5 if [ $can_ingest == 'true' ]; then
6 cd $project_dir
7 su charmworld -c "INI=$CONFIG_FILE bin/migrations upgrade --init"
8+ if [ -f bin/es-update ]; then
9+ su charmworld -c "INI=$CONFIG_FILE bin/es-update"
10+ fi
11 cd $charm_dir
12 hooks/start
13 else

Subscribers

People subscribed via source and target branches

to all changes: