I need help with creating a snap of a binary that needs a configuration file.
To run the application outside of a snap, I would run “ptpd2 -c ptp-server-sample.conf” where ptp-server-sample.conf is the configuration file needed.
How do I specify the configuration file to be included in the snap?
Here is a yaml i have used to build the binary from the source:
name: ptpd2 version: '0.1' # just for humans, typically '1.2+git' or '1.3.2' summary: Single-line elevator pitch for your amazing snap # 79 char long summary description: | This is my-snap's description. You have a paragraph or two to tell the most important story about your snap. Keep it under 100 words though, we live in tweetspace and your description wants to look good in the snap store. grade: devel # must be 'stable' to release into candidate/stable channels confinement: devmode # use 'strict' once you have the right plugs and slots apps: ptpd2: command: ptpd2 -c ptp-server-sample.conf # this is where I am stuck. The snap is unable to locate .conf daemon: simple restart-condition: always plugs: [network] parts: gnu-ptp: source: https://github.com/ptpd/ptpd.git plugin: autotools