Re: Shared content example - ubuntu-app-platform

2016-11-30 Thread Enwei Zhang
Hi Stuart,
I never got "write" working, it always tells me "permission denied".
For your mount issue, I guess you need to create a empty folder locally
called "test-share-target".

Br
Enwei

On Wed, Nov 30, 2016 at 9:39 PM, Stuart Bishop <stuart.bis...@canonical.com>
wrote:

> On 29 November 2016 at 08:36, Enwei Zhang <enwei.zh...@canonical.com>
> wrote:
>
>> Thank you Timo.
>> I changed from "./bin" to "/bin", then it works.
>>
>
>
> Did you have any luck getting 'write' to work? I'm getting as far as
> running my app and it failing with:
>
>   cannot mount /snap/prov/x2 at /snap/cons/x1/test-share-target with
> options bind. errmsg: No such file or directory
>
> I'm unsure what paths I should be using. I need to get access to
> $SNAP_DATA, $SNAP_USER_DATA, $SNAP_COMMON etc. to install configuration
> files.
>
> Are there any user docs or design specs around, or is this feature being
> prototyped on the fly? I can't even find anything about the plugs: stanza
> in snapcraft.yaml, but that might just be a lack of Google juice.
>
> keskiviikko 23. marraskuuta 2016 Enwei Zhang <enwei.zh...@canonical.com>
>>> kirjoitti:
>>> > Hello,
>>> > Thanks Timo for the good example.
>>> > While I tried to write two snaps(server to share paths to client) that
>>> use content interface to share files, I found "write" slot doesn't work.
>>> > The code snippet from server side snapcraft.yaml
>>> >
>>> > slots:
>>> > test-share:
>>> > content: test-content-server
>>> > interface: content
>>> > write:
>>> > - .
>>> >
>>> > When accessing from client side snap, it shows "permission denied".
>>>
>>>
>>>
>
> --
> Stuart Bishop <stuart.bis...@canonical.com>
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Shared content example - ubuntu-app-platform

2016-11-22 Thread Enwei Zhang
Hello,
Thanks Timo for the good example.
While I tried to write two snaps(server to share paths to client) that use
content interface to share files, I found "write" slot doesn't work.
The code snippet from server side snapcraft.yaml

slots:
  test-share:
content: test-content-server
interface: content
write:
  - .

When accessing from client side snap, it shows "permission denied".

Also, I found only "." path can work, other path like below "./bin" cannot
work. When you run "snap interfaces", below slot "test-share" will not show
up.

slots:
  test-share:
content: test-content-server
interface: content
read:
  - ./bin

Are these bugs or my misunderstanding? I tested on both 2.16 and 2.17 snapd.
Thanks for your answer.

Br
Enwei

>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: How to restart a simple daemon?

2016-11-20 Thread Enwei Zhang
Thank you Xiaoguo, stop-command is enough for my case.

Br
Enwei

On Mon, Nov 21, 2016 at 11:30 AM, XiaoGuo Liu <xiaoguo@canonical.com>
wrote:

> Hi Enwei,
>
> When your app is running, your app definitely knows since it is started.
> You can do something there.
>
> When your app is stopped, you can also add a "stop-command" when you
> define your snapcraft.yaml. Please refer to  http://snapcraft.io/docs/
> build-snaps/syntax
>
> I do not know whether there are any hooks for this purpose.
>
> Hope this helps!
> XiaoGuo
>
> On Mon, Nov 21, 2016 at 11:22 AM, Enwei Zhang <enwei.zh...@canonical.com>
> wrote:
>
>> Hi Xiaoguo and folks,
>> Is there a notification/callback mechanism so that when snap
>> enable/disable is executed on my snap, my snap can receive notification to
>> do some corresponding actions?
>> Thanks.
>>
>> Br
>> Enwei
>>
>> On Mon, Nov 21, 2016 at 10:50 AM, Enwei Zhang <enwei.zh...@canonical.com>
>> wrote:
>>
>>> Thank you so much Xiaoguo.
>>>
>>> On Mon, Nov 21, 2016 at 10:30 AM, XiaoGuo Liu <xiaoguo@canonical.com
>>> > wrote:
>>>
>>>> Hi Enwei,
>>>>
>>>> There are a few ways to handle it.
>>>>
>>>> 1) You do not need to make it a daemon before it is getting stable.
>>>> When your run your app, just use "sudo" to run it on command line. When it
>>>> is stable, change it to daemon.
>>>>
>>>> 2) You can use "snap enable/disable" to toggle the state of the app.
>>>> When it is enabled, it starts to run again. In your case, your daemon app
>>>> will be restarted.
>>>>
>>>> Best regards,
>>>> XiaoGuo
>>>>
>>>> On Mon, Nov 21, 2016 at 10:23 AM, Enwei Zhang <
>>>> enwei.zh...@canonical.com> wrote:
>>>>
>>>>> Hello,
>>>>> When I install a simple daemon snap, the daemon is started right after
>>>>> it is installed.
>>>>> Suppose it stops due to some condition, is there a way to restart it?
>>>>> Thanks a lot.
>>>>>
>>>>> Br
>>>>> Enwei
>>>>>
>>>>> --
>>>>> Snapcraft mailing list
>>>>> Snapcraft@lists.snapcraft.io
>>>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>>>> an/listinfo/snapcraft
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> XiaoGuo, Liu
>>>>
>>>> --
>>>> Snapcraft mailing list
>>>> Snapcraft@lists.snapcraft.io
>>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>>> an/listinfo/snapcraft
>>>>
>>>>
>>>
>>
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/snapcraft
>>
>>
>
>
> --
> XiaoGuo, Liu
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: How to restart a simple daemon?

2016-11-20 Thread Enwei Zhang
Hi Xiaoguo and folks,
Is there a notification/callback mechanism so that when snap enable/disable
is executed on my snap, my snap can receive notification to do some
corresponding actions?
Thanks.

Br
Enwei

On Mon, Nov 21, 2016 at 10:50 AM, Enwei Zhang <enwei.zh...@canonical.com>
wrote:

> Thank you so much Xiaoguo.
>
> On Mon, Nov 21, 2016 at 10:30 AM, XiaoGuo Liu <xiaoguo@canonical.com>
> wrote:
>
>> Hi Enwei,
>>
>> There are a few ways to handle it.
>>
>> 1) You do not need to make it a daemon before it is getting stable. When
>> your run your app, just use "sudo" to run it on command line. When it is
>> stable, change it to daemon.
>>
>> 2) You can use "snap enable/disable" to toggle the state of the app. When
>> it is enabled, it starts to run again. In your case, your daemon app will
>> be restarted.
>>
>> Best regards,
>> XiaoGuo
>>
>> On Mon, Nov 21, 2016 at 10:23 AM, Enwei Zhang <enwei.zh...@canonical.com>
>> wrote:
>>
>>> Hello,
>>> When I install a simple daemon snap, the daemon is started right after
>>> it is installed.
>>> Suppose it stops due to some condition, is there a way to restart it?
>>> Thanks a lot.
>>>
>>> Br
>>> Enwei
>>>
>>> --
>>> Snapcraft mailing list
>>> Snapcraft@lists.snapcraft.io
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>> an/listinfo/snapcraft
>>>
>>>
>>
>>
>> --
>> XiaoGuo, Liu
>>
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/snapcraft
>>
>>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: How to restart a simple daemon?

2016-11-20 Thread Enwei Zhang
Thank you so much Xiaoguo.

On Mon, Nov 21, 2016 at 10:30 AM, XiaoGuo Liu <xiaoguo@canonical.com>
wrote:

> Hi Enwei,
>
> There are a few ways to handle it.
>
> 1) You do not need to make it a daemon before it is getting stable. When
> your run your app, just use "sudo" to run it on command line. When it is
> stable, change it to daemon.
>
> 2) You can use "snap enable/disable" to toggle the state of the app. When
> it is enabled, it starts to run again. In your case, your daemon app will
> be restarted.
>
> Best regards,
> XiaoGuo
>
> On Mon, Nov 21, 2016 at 10:23 AM, Enwei Zhang <enwei.zh...@canonical.com>
> wrote:
>
>> Hello,
>> When I install a simple daemon snap, the daemon is started right after it
>> is installed.
>> Suppose it stops due to some condition, is there a way to restart it?
>> Thanks a lot.
>>
>> Br
>> Enwei
>>
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/snapcraft
>>
>>
>
>
> --
> XiaoGuo, Liu
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: configure hook

2016-11-15 Thread Enwei Zhang
Hi Didier and folks,
I didn't find any bug to track the missing hooks support in snapcraft.
Do we need a new one?
Thanks.

Br
Enwei

On Tue, Nov 15, 2016 at 6:43 AM, Sergio Schvezov <
sergio.schve...@canonical.com> wrote:

> El 14/11/16 a las 18:35, Boris Rybalkin escribió:
>
>> VM has snapd v2.17, is it possible to install this version on desktop
>> 16.04/16.10 so I can have it for integration tests?
>>
>
> It is in xenial-proposed https://launchpad.net/ubuntu/+source/snapd
> If you want the latest and greatest at all times (non production). If you
> do this, follow the pinning process in https://wiki.ubuntu.com/Testin
> g/EnableProposed to pin snapd to xenial-proposed only and not risk
> getting more (potentially unstable) -proposed software.
>
> Also is there any documentation on how to install snapd on a linux?
>>
>
> These are the installation instructions available for the variety of
> distros around:
> http://snapcraft.io/docs/core/install, in case you wonder where I got
> that link from, it is available as a link on the web front of
> http://snapcraft.io
>
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
> an/listinfo/snapcraft
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: crontab like snaps or interfaces

2016-11-15 Thread Enwei Zhang
Thanks Didier very much.
I report one new bug https://bugs.launchpad.net/snappy/+bug/1642090
Please feel free to comment if any doubt or questions.
Thanks again.

Br
Enwei

On Mon, Nov 14, 2016 at 4:05 PM, Didier Roche <didro...@ubuntu.com> wrote:

> Le 14/11/2016 à 09:03, Didier Roche a écrit :
> > Le 14/11/2016 à 02:29, Enwei Zhang a écrit :
> >> Hello,
> >> I want to ask if there is any snaps or interfaces that could support
> >> crontab or systemd.timer or that kind of timed operations.
> >> For example, if my snap uses syslog to save all the logs, how should
> >> logrotate work?
> >>
> >> Thanks so much.
> > CCing Gustavo to get some clarification on this.
> >
> >
> Also, please, open a bug on https://launchpad.net/snappy with the exact
> use case. I'm unsure if you need an interface for this (interfaces are
> between snaps), here it seems you only need systemd timer units and
> crontab support (the same way we support services, hooks and such…)
>
>
> Cheers,
>
> Didier
>
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Is there any guidance/document about how to write App-provided slots

2016-11-14 Thread Enwei Zhang
Yes, you are right Simon. I am clear now.
Thanks a lot.

Br
Enwei

On Mon, Nov 14, 2016 at 9:29 PM, Simon Fels <simon.f...@canonical.com>
wrote:

> On 14.11.2016 11:56, Enwei Zhang wrote:
> > Thanks David. Did you forget to add Morphis and Zyga? :)
> > Loop Simon.
> > Simon told me here is the latest bluez snap,
> > https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/bluez
> > <https://code.launchpad.net/%7Esnappy-hwe-team/snappy-hwe-
> snaps/+git/bluez>
> > Simon told me that bluez snap only declares bluez slot in its
> > snapcraft.yaml.
> >
> > IMHO, after the bluez snap declares "bluez" slot in snapcraft.yaml, it
> > will have *bluezPermanentSlotAppArmor* capability defined in
> > https://github.com/snapcore/snapd/blob/master/interfaces/
> builtin/bluez.go#L28
> > <https://github.com/snapcore/snapd/blob/master/interfaces/
> builtin/bluez.go#L28>
> > So it seems to me by defining "bluez" slot, the bluez snap have more
> > power/permissions to do some privileged work,
> > *but* it doesn't *provide* anything to other snaps. From my experiment,
> > if a new snap connects to the bluez slot in bluez snap, the new snap
> > will not get the extra permissions.
>
> The connecting snap (the plug side) will get the bluezConnectedPlug
> snippets from the interface definitions which actually allow the
> application to talk to bluez over dbus. So the bluez snap provides
> something to other services, a dbus service.
>
> If you want to know more in deep things about interfaces and how they
> work have a look at Zygmunds great post about how to write an interface
> at
> http://www.zygoon.pl/2016/08/creating-your-first-snappy-interface.html
> It will tell about all the details and the different snippets you can use.
>
> regards,
> Simon
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Is there any guidance/document about how to write App-provided slots

2016-11-14 Thread Enwei Zhang
Thanks David. Did you forget to add Morphis and Zyga? :)
Loop Simon.
Simon told me here is the latest bluez snap,
https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/bluez
<https://code.launchpad.net/%7Esnappy-hwe-team/snappy-hwe-snaps/+git/bluez>
Simon told me that bluez snap only declares bluez slot in its
snapcraft.yaml.

IMHO, after the bluez snap declares "bluez" slot in snapcraft.yaml, it will
have *bluezPermanentSlotAppArmor* capability defined in
https://github.com/snapcore/snapd/blob/master/interfaces/
builtin/bluez.go#L28
So it seems to me by defining "bluez" slot, the bluez snap have more
power/permissions to do some privileged work,
*but* it doesn't *provide* anything to other snaps. From my experiment, if
a new snap connects to the bluez slot in bluez snap, the new snap will not
get the extra permissions.

Thanks again.

Br
Enwei
On Thu, Nov 10, 2016 at 1:34 AM, David Callé <dav...@framli.eu> wrote:

> On 09/11/2016 10:47, Enwei Zhang wrote:
>
> Hello,
> For now, all slots are provided by ubuntu-core. I saw the concept of
> App-provided slots from
> https://github.com/snapcore/snapd/blob/master/interfaces/bui
> ltin/basedeclaration.go#L72
> But I didn't find any guidance/document about how to do that.
> Could you please help advise?
>
>
> I don't think we have a document for this yet, except the general
> interfaces overview that only mentions it as a possibility (
> http://snapcraft.io/docs/core/interfaces ).
>
> As far as I know, only two snaps are providing their own slots: the core
> snap and bluez.
> If it can help in the meantime, the source code I've found for the bluez
> snap is at: http://bazaar.launchpad.net/~bluetooth/bluez/snap-core-rolli
> ng/files
>
>
CCing Morphis and Zyga for more information.
>
> Cheers,
> David
>
> Thanks so much.
>
> Br
> Enwei
>
>
>
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
> an/listinfo/snapcraft
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


crontab like snaps or interfaces

2016-11-13 Thread Enwei Zhang
Hello,
I want to ask if there is any snaps or interfaces that could support
crontab or systemd.timer or that kind of timed operations.
For example, if my snap uses syslog to save all the logs, how should
logrotate work?

Thanks so much.

Br
Enwei
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Is there any guidance/document about how to write App-provided slots

2016-11-09 Thread Enwei Zhang
Hello,
For now, all slots are provided by ubuntu-core. I saw the concept of
App-provided slots from
https://github.com/snapcore/snapd/blob/master/interfaces/builtin/basedeclaration.go#L72
But I didn't find any guidance/document about how to do that.
Could you please help advise?
Thanks so much.

Br
Enwei
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: configure hook

2016-11-08 Thread Enwei Zhang
Got it, thanks so much.

Br
Enwei

On Wed, Nov 9, 2016 at 3:38 PM, Didier Roche <didro...@ubuntu.com> wrote:

> Le 09/11/2016 à 07:44, Enwei Zhang a écrit :
>
> Hi Didier,
> Sorry to cut in.
> Is "hooks" working now in snapcraft?
> I encountered error:
> I used below in snapcraft.yaml:
>
> hooks: # Top-level YAML attribute, parallel to `apps`
> upgrade: # Hook name, corresponds to executable name
> plugs: [network] # Or any other plugs required by this hook
>
> enwei@XPS-13-9350:~/work/snap/simple-daemon$ snapcraft
> Issues while validating snapcraft.yaml: Additional properties are not
> allowed ('hooks' was unexpected)
> enwei@XPS-13-9350:~/work/snap/simple-daemon$ snapcraft --version
> 2.20
>
>
> No, right now, they are only implemented in snapd.
> You need to place the correct file in the meta/hooks/ folder (if you are
> using snapcraft, do this in the prime/ directory, before "snapcraft snap
> prime/").
>
> There is an example available at https://github.com/snapcore/
> snapd/tree/master/tests/lib/snaps/basic-hooks/meta/hooks.
>
> Hope that helps!
> Didier
>
>
> Thanks.
>
> Br
> Enwei
>
>
>
> On Tue, Nov 8, 2016 at 6:28 PM, Didier Roche <didro...@ubuntu.com> wrote:
>
>> Le 08/11/2016 à 04:52, Kyle Fazzari a écrit :
>> >
>> > On Nov 6, 2016 21:51, "Didier Roche" <didro...@ubuntu.com
>> > <mailto:didro...@ubuntu.com>> wrote:
>> >>
>> >> Le 06/11/2016 à 00:22, Boris Rybalkin a écrit :
>> >> >
>> >> > Hello,
>> >> >
>> >>
>> >> Hey Boris,
>> >> >
>> >> > I want to generate my config on snap install using snap location
>> >> > variables.
>> >> >
>> >> > From the docs configure hook is only triggered when 'snap set' is
>> >> > called. Will configure also be called on install and upgrade?
>> >> >
>> >> I didn't try it myself yet, but from what I heard yeah, they will be
>> run
>> >> at that time. Kyle can confirm (and if so, we'll update to the
>> >> documentation to reflect that).
>> >
>> > 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.
>> >
>> > Kyle
>> >
>>
>> FYI, opened https://github.com/ubuntudesign/snapcraft.io/issues/216
>> about it (after confirming manually this new behavior).
>>
>> So, to answer on the initial reply: yes, the hooks are ran on install
>> and upgrade.
>>
>> Cheers,
>> Didier
>>
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/snapcraft
>>
>
>
>
>
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: configure hook

2016-11-08 Thread Enwei Zhang
Hi Didier,
Sorry to cut in.
Is "hooks" working now in snapcraft?
I encountered error:
I used below in snapcraft.yaml:

hooks: # Top-level YAML attribute, parallel to `apps`
upgrade: # Hook name, corresponds to executable name
plugs: [network] # Or any other plugs required by this hook

enwei@XPS-13-9350:~/work/snap/simple-daemon$ snapcraft
Issues while validating snapcraft.yaml: Additional properties are not
allowed ('hooks' was unexpected)
enwei@XPS-13-9350:~/work/snap/simple-daemon$ snapcraft --version
2.20

Thanks.

Br
Enwei



On Tue, Nov 8, 2016 at 6:28 PM, Didier Roche  wrote:

> Le 08/11/2016 à 04:52, Kyle Fazzari a écrit :
> >
> > On Nov 6, 2016 21:51, "Didier Roche"  > > wrote:
> >>
> >> Le 06/11/2016 à 00:22, Boris Rybalkin a écrit :
> >> >
> >> > Hello,
> >> >
> >>
> >> Hey Boris,
> >> >
> >> > I want to generate my config on snap install using snap location
> >> > variables.
> >> >
> >> > From the docs configure hook is only triggered when 'snap set' is
> >> > called. Will configure also be called on install and upgrade?
> >> >
> >> I didn't try it myself yet, but from what I heard yeah, they will be run
> >> at that time. Kyle can confirm (and if so, we'll update to the
> >> documentation to reflect that).
> >
> > 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.
> >
> > Kyle
> >
>
> FYI, opened https://github.com/ubuntudesign/snapcraft.io/issues/216
> about it (after confirming manually this new behavior).
>
> So, to answer on the initial reply: yes, the hooks are ran on install
> and upgrade.
>
> Cheers,
> Didier
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft