post-stop-command not wrapped
Metadata
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.