Replacing Postinst Scripts

robert_joslyn at selinc.com robert_joslyn at selinc.com
Thu Nov 19 01:06:43 UTC 2015


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)?

Thanks,

--
Robert Joslyn
Software Engineer, R&D - Automation
Schweitzer Engineering Laboratories
509-332-1890 ext. 3214



More information about the snappy-app-devel mailing list