We have several daemons that we are starting up via a snap. All of the daemons are looking for specific directory's for their data. One of the apps is mongo. Unfortunately the data directory is empty so the db folder does not exist.
apps: app1: command: app1 --path "$SNAP_DATA/app1 daemon: simple mongodb: command: mongod --dbpath "$SNAP_DATA/db/" daemon: simple plugs: [network-bind]
how can we force that directory to be created before the mongodb daemon starts?