This is the general pattern I settled on for wrapper binaries (after
giving up on Makefiles because I'm just odd that way):
#!/bin/sh
test -e $SNAP_USER_DATA/foo.conf || cp $SNAP/etc/foo.conf $SNAP_USER_DATA/
exec $SNAP/bin/foo
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1611287
Title:
provide canonical way to install templates and configuration files
into $SNAP_* dirs
To manage notifications about this bug go to:
https://bugs.launchpad.net/snapcraft/+bug/1611287/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs