<html><head></head><body><div>On Wed, 2015-11-18 at 17:06 -0800, robert_joslyn@selinc.com wrote:</div><blockquote type="cite"><pre>Is there a good way to handle debian postinst scripts in Snappy? I have
some debs that create users and setup configuration files during the
postinst stage, and I would like to include these debs in a larger snap.
How do I handle user creation and placing configuration files into
$SNAP_APP_DATA_PATH? Is my application expected to do this on first run?
Can I specify user creation and the user a service will run as in the
package.yaml (or snapcraft.yaml)?
</pre></blockquote><div><br></div><div>There isn't a way to have a script run at install time currently. I haven't heard any discussion of that, but the snaps I've built do any init they need on first run.</div><div><br></div><div>I'm not sure what you're using extra users for, but generally speaking the individual snap confinement makes using users for privilege separation not needed in most cases. I don't believe that we have a permission to allow a snap to create users today, so it would have to be unconfined.</div><div><br></div><div>Ted</div><div><br></div></body></html>