<p dir="ltr"><br>
On Nov 6, 2016 21:51, "Didier Roche" <<a href="mailto:didrocks@ubuntu.com">didrocks@ubuntu.com</a>> wrote:<br>
><br>
> Le 06/11/2016 à 00:22, Boris Rybalkin a écrit :<br>
> ><br>
> > Hello,<br>
> ><br>
><br>
> Hey Boris,<br>
> ><br>
> > I want to generate my config on snap install using snap location<br>
> > variables.<br>
> ><br>
> > From the docs configure hook is only triggered when 'snap set' is<br>
> > called. Will configure also be called on install and upgrade?<br>
> ><br>
> I didn't try it myself yet, but from what I heard yeah, they will be run<br>
> at that time. Kyle can confirm (and if so, we'll update to the<br>
> documentation to reflect that).</p>
<p dir="ltr">When I wrote it (and the docs) it was only run with `snap set`. I believe it's been modified since then to run upon initial install as well as upgrade; indeed Gustavo mentioned that it should serve as an install and an upgrade hook. The docs weren't updated with this change, it seems. That recommendation should also be documented.</p>
<p dir="ltr">Kyle</p>