All hooks are run sequentially (we explicitly take out a lock across all hooks that want to run on a machine), just so that charms can do whatever they want with apt without stepping on each other's toes.
I would think "install" is the most likely hook to actually do update and install. I'm not sure about a charm ever doing "upgrade" since that would upgrade other packages, right? There isn't a process in juju today that does regular "keep my machines up to date" but you do have "juju run sudo apt-get update" if you want to do it manually. On Thu, Apr 10, 2014 at 2:00 PM, Stuart Bishop <[email protected]>wrote: > Hi. > > Should a charm be responsible for running 'apt-get update', 'apt-get > upgrade' etc? > > If so, which hooks should invoke this behavior? > > Of course, sometimes a charm has no choice about 'apt-get update', for > example when a config-changed hook needs to add a PPA. > > -- > Stuart Bishop <[email protected]> > > -- > Juju mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju >
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
