← Back to issue list

post-stop-command not wrapped

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1683422
Type
issue
State
open
Author
~mabnhdev
Labels
post-stop-command
Created
2017-04-17 16:42:06.698647+00:00
Updated
2017-04-17 16:42:06.698647+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

The post-stop-command is not wrapped, so not snappy variable substitution is possible. The post-stop-command is copied verbatim into the meta/snap.yaml file with insufficient syntax checking. If a variable is included it causes snap installation failure with the errror: error: cannot read snap file: app description field 'post-stop-command' contains illegal "/bin/ls $SNAP/etc" (legal: '^[A-Za-z0-9/. _#:-]*$') To reproduce: git clone http://github.com/mabnhdev/snappy-daemon-demo -b poststop cd snappy-daemon-demo snapcraft sudo snap try

Evaluation history

No evaluation history available.