summary refs log tree commit diff
path: root/snap/snapcraft.yaml
diff options
context:
space:
mode:
authorJames <james@ec0.io>2020-02-27 23:47:40 +1100
committerGitHub <noreply@github.com>2020-02-27 12:47:40 +0000
commitb32ac60c22493cd191d63eae5104fa9d69c37495 (patch)
tree4676500c2b7c6d3c98bcbeed6989d573fc83734d /snap/snapcraft.yaml
parentAdd some type annotations in `synapse.storage` (#6987) (diff)
downloadsynapse-b32ac60c22493cd191d63eae5104fa9d69c37495.tar.xz
Expose common commands via snap run interface to allow easier invocation (#6315)
Signed-off-by: James Hebden <james@ec0.io>

Diffstat (limited to 'snap/snapcraft.yaml')
-rw-r--r--snap/snapcraft.yaml21
1 files changed, 16 insertions, 5 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 9e644e8567..6b62b79114 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -1,20 +1,31 @@
 name: matrix-synapse
 base: core18
-version: git 
+version: git
 summary: Reference Matrix homeserver
 description: |
   Synapse is the reference Matrix homeserver.
   Matrix is a federated and decentralised instant messaging and VoIP system.
 
-grade: stable 
-confinement: strict 
+grade: stable
+confinement: strict
 
 apps:
-  matrix-synapse: 
+  matrix-synapse:
     command: synctl --no-daemonize start $SNAP_COMMON/homeserver.yaml
     stop-command: synctl -c $SNAP_COMMON stop
     plugs: [network-bind, network]
-    daemon: simple 
+    daemon: simple
+  hash-password:
+    command: hash_password
+  generate-config:
+    command: generate_config
+  generate-signing-key:
+    command: generate_signing_key.py
+  register-new-matrix-user:
+    command: register_new_matrix_user
+    plugs: [network]
+  synctl:
+    command: synctl
 parts:
   matrix-synapse:
     source: .