[Bug 1745066] Re: Snap documatation of hook changes

2019-11-24 Thread Launchpad Bug Tracker
[Expired for snapd (Ubuntu) because there has been no activity for 60
days.]

** Changed in: snapd (Ubuntu)
   Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745066

Title:
  Snap documatation of hook changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1745066/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1745066] Re: Snap documatation of hook changes

2019-09-25 Thread Ian Johnson
Does `snapctl set` during a hook still cause the installation of a snap
to hang for you? I cannot reproduce this behavior with snapd 2.42.

Also have you seen the new documentation for hooks at
https://snapcraft.io/docs/supported-snap-hooks ? If you would like
changes made to that documentation, you can suggest edits on the forum
for that page (see the bottom of the page for a link).

Since docs are editable via the forum, that's the place to discuss
issues with documentation nowadays. As such I'll close this, but if you
can still reproduce the issue around installing a snap with `snapctl
set` in the install hook then please comment with more details.

** Changed in: snapd (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745066

Title:
  Snap documatation of hook changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1745066/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1745066] Re: Snap documatation of hook changes

2018-02-09 Thread Dylan A.
** Package changed: snap (Ubuntu) => snapd (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745066

Title:
  Snap documatation of hook changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1745066/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1745066] Re: Snap documatation of hook changes

2018-01-23 Thread Brett Sutton
And updated doco for the install hook

 CURRENT
“install”

The install hook is called upon initial install, before any services
contained by the snap are started. If the hook exits non-zero, the
installation of the snap will fail.

Example

Before running the snapcraft command to build your snap, this install
file should be placed at this location:

/snap/hooks/install.

#!/bin/sh
set -e

# Run any commands needed to setup the snap.
# This could be downloading a list of dynamic configuration options or creating 
a database.


 SUGGESTED
“install”

The install hook is called the snaps installation has completed but
before before any services contained by the snap are started. If the
'install' hook exits non-zero, the installation of the snap will fail
causing a full rollback.

The install hook can be used to run any commands needed as part of the
setup, such as creating or upgrading a database or downloading
dynamically configured files.

You can also provide some initial default values for the key/value store
by calling:

snapctl set =


The install script lives along side the configure script at:

/snap/hooks/install

Example

#!/bin/sh
set -e

snapctl set username=daemon_user
snapctl set password=

# Run any commands needed to setup the snap.
# This could be downloading a list of dynamic configuration options or creating 
a database.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745066

Title:
  Snap documatation of hook changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snap/+bug/1745066/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs