I’m trying to have a service start with configuration taken from the snapctl.
apps: mashnet-node: command: mashnet-node --dev --ws-port "$(snapctl get mashnet-node.wsport)" daemon: simple
But I get this:
Failed to generate snap metadata: The specified command 'target/release/mashnet-node --dev --ws-port "$(snapctl get mashnet-node.wsport)"' defined in the app 'mashnet-node' does not match the pattern expected by snapd. The command must consist only of alphanumeric characters, spaces, and the following special characters: / . _ # : $ -
I’ve successfully done this construction in another snap, but now I seem to do either some trivial error or I’m lost.
… and I doing this backwards?