ubuntu core - How to format writable directory when snap is installed? - Ask Ubuntu


we have several daemons starting via snap. of daemons looking specific directory's data. 1 of apps mongo. unfortunately data directory empty db folder 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 force directory created before mongodb daemon starts?

the correct way handle command run script instead of mongod directly. script should format directory , exec mongo.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User