Add Debian postinst script to create /etc/dmedia/machine.json
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dmedia |
Invalid
|
High
|
Unassigned |
Bug Description
dmedia creates a 'dmedia/machine' doc to track each machine in a group of peers sharing the same dmedia library.
Currently dmedia stores this in CouchDB only and uses a special dmedia/
We should probably have a /var/lib/
Here's how to create the machine doc:
>>> from dmedia import schema
>>> schema.
{'type': 'dmedia/machine', '_id': 'KY7WRUNJCEAXQK
Note that the doc saved in /etc/dmedia/
The idea is we pass this to dmedia.core. As a fallback, if /etc/dmedia/
I believe all postinst scripts need to be shell scripts. Relevant Debian Policy:
http://
The postinst scripts in apache2 seems like useful reference examples.
Changed in dmedia: | |
milestone: | 11.09 → 11.10 |
Changed in dmedia: | |
milestone: | 11.10 → 11.11 |
Changed in dmedia: | |
milestone: | 11.11 → 11.12 |
I'm closing this out as we use the machine_id to identify the Dmedia HTTP server via Avahi, so this should be per-user, per-machine.