Allow hooks to be executed before/after install-refresh outside of the snap itself

Bug #1911018 reported by Benjamin Allot
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Wishlist
Unassigned

Bug Description

Hello,

This is a feature request to allow some scripts/commands to be executed before and after an install/refresh of any or a given subset of snap.

The use case is allowing administrators to customize/automate some things related to the configuration outside of the snap.

If one wants to use the telegraf snap, he/she should be able to run some VCS command on /var/snap/telegraf/current.

Having some environment variable containing basic information during those hooks execution, like the channel, revision, version and mode, for both the current and target would allow this kind of thing.

Regards,

Changed in snapd:
importance: Undecided → Wishlist
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.