It seems that the hooks are available now so I'm marking this as fix
released.
** Changed in: snapd (Ubuntu)
Status: Fix Committed => Fix Released
** Changed in: snapd
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Bu
Right. Just to clarify, the two new hooks are 'pre-refresh' and 'post-
refresh'.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1611638
Title:
snap upgrade hook
To manage notifications about this bu
We have two hooks now - one that is run before the refresh happens and
one after. This should cover this bug.
** Changed in: snapd (Ubuntu)
Status: New => Triaged
** Project changed: snappy => snapd
** Changed in: snapd
Status: New => Triaged
** Changed in: snapd
Status: Tr
@Simon: I'm not sure what the plan is, but I don't believe it passes
anything extra at the moment. You could work around this by utilizing
snapctl. For example, at the beginning of the hook, check `snapctl get
installed`. If it's true, move on, but if it's false, run your initial
install operations
Yeah I was reading
https://github.com/snapcore/snapd/blob/master/docs/hooks.md and also
wondered about how to differ install/upgrade - especially interesting as
it was suggested to address bug 1611287.
I also would like to have the usual snap environment around like
$SNAP_USER_DATA around, which -
@Kyle: How is that supposed to work? Will there be an additional flag
passed to the snap when the configure hook is called to indicate its
called because of 'install' or 'upgrade' operations?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubu
The recommendation from Gustavo is to use the configure hook for this
(which is run upon initial install, upgrade, and when `snap set` is
called).
** Changed in: snappy
Assignee: Kyle Fazzari (kyrofa) => (unassigned)
** Changed in: snappy
Status: In Progress => New
** Changed in: sna
Take a look at the PRs from kyrofa that will lead us there:
https://github.com/snapcore/snapd/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Akyrofa%20is%3Aclosed%20%20hook
** Changed in: snapd (Ubuntu)
Status: New => In Progress
** Also affects: snappy
Importance: Undecided
Status: Ne
BTW - depending on the preferences of the snappy Team , such a "hook
called after upgrade/install" would almost cover bug 1611287 as well
(that hook could make things available). OTOH for 1611287 the point is
that it doesn't even has to be installed as part of the snap but only
into the DATA dirs.
Set whishlist as it is a feature
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1611638
Title:
snap upgrade hook
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+sour
10 matches
Mail list logo