aboutsummaryrefslogtreecommitdiffstats
path: root/community/synapse/synapse.post-install
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-12-06 20:48:19 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-06 20:48:23 +0100
commit615f0ed66e611d8063d283dcbcf89c77e83bbaa8 (patch)
tree2ea51462019555f6a47f59ed134db26b71e49aa3 /community/synapse/synapse.post-install
parent29dd8049cf52711e0974c947c94925b188ae38b5 (diff)
downloadaports-615f0ed66e611d8063d283dcbcf89c77e83bbaa8.tar.bz2
aports-615f0ed66e611d8063d283dcbcf89c77e83bbaa8.tar.xz
community/synapse: move from testing
Diffstat (limited to 'community/synapse/synapse.post-install')
-rw-r--r--community/synapse/synapse.post-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/synapse/synapse.post-install b/community/synapse/synapse.post-install
new file mode 100644
index 0000000000..a3c61c5cfd
--- /dev/null
+++ b/community/synapse/synapse.post-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ ! -e etc/synapse/homeserver.yaml ]; then
+ python3 -m synapse.app.homeserver \
+ --server-name my.domain.name \
+ --config-path /etc/synapse/homeserver.yaml \
+ --generate-config \
+ --report-stats=yes 2>/dev/null
+fi
+
+exit 0