Add Snapcraft metadata and install/maintenance hooks (#666)

* Add Snapcraft metadata and install/maintenance hooks

* Move set-environment script into snap/local

* snap: Remove diesel-cli part.

This *was* necessary as of 0.3.0, but now `plm migrations run` does the job.

* snap: Add an actual description

* snap: Add an 'enabled' config item.

Don't try to run until enabled is set, and automatically run the
migrations when we are enabled
This commit is contained in:
Christopher James Halse Rogers
2019-09-16 12:33:25 +02:00
committed by Igor Galić
parent 309e1200d0
commit b5eecbf2e7
5 changed files with 141 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
openssl rand -base64 32 > ${SNAP_COMMON}/rocket-secret-key