~gnuoy/charms/precise/daisy-retracer/add-upgrade-charm

Viewing all changes in revision 15.

  • Committer: Martin Pitt
  • Date: 2012-12-11 18:11:13 UTC
  • Revision ID: martin.pitt@canonical.com-20121211181113-iqrvzf8e3u76gn9l
Make install hook idempotent, add upgrade hook

Add an "upgrade-charm" hook, which just calls install again. Make the install
charm idempotent.

With this, changes to the charm can be tested rapidly with

  juju upgrade-charm --repository charms daisy-retracer

from the deployment branch.

Also drop unnecessary sudo calls from install hook, the hook already runs as
root.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: