Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit b32ac60

Browse files
author
James
authored
Expose common commands via snap run interface to allow easier invocation (#6315)
Signed-off-by: James Hebden <james@ec0.io>
1 parent 132b673 commit b32ac60

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

changelog.d/6315.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Expose the `synctl`, `hash_password` and `generate_config` commands in the snapcraft package. Contributed by @devec0.

snap/snapcraft.yaml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
name: matrix-synapse
22
base: core18
3-
version: git
3+
version: git
44
summary: Reference Matrix homeserver
55
description: |
66
Synapse is the reference Matrix homeserver.
77
Matrix is a federated and decentralised instant messaging and VoIP system.
88
9-
grade: stable
10-
confinement: strict
9+
grade: stable
10+
confinement: strict
1111

1212
apps:
13-
matrix-synapse:
13+
matrix-synapse:
1414
command: synctl --no-daemonize start $SNAP_COMMON/homeserver.yaml
1515
stop-command: synctl -c $SNAP_COMMON stop
1616
plugs: [network-bind, network]
17-
daemon: simple
17+
daemon: simple
18+
hash-password:
19+
command: hash_password
20+
generate-config:
21+
command: generate_config
22+
generate-signing-key:
23+
command: generate_signing_key.py
24+
register-new-matrix-user:
25+
command: register_new_matrix_user
26+
plugs: [network]
27+
synctl:
28+
command: synctl
1829
parts:
1930
matrix-synapse:
2031
source: .

0 commit comments

Comments
 (0)