From afec7878a3c0ccd387d98b40b53f09d5f138a6ca Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Sun, 27 Dec 2020 19:14:27 +0100 Subject: [PATCH] Split step for install and default configuration --- seqs/matrix.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/seqs/matrix.sh b/seqs/matrix.sh index 8d8412f..a34996d 100755 --- a/seqs/matrix.sh +++ b/seqs/matrix.sh @@ -98,7 +98,11 @@ step_4() { exe pip install --upgrade pip exe pip install --upgrade setuptools exe pip install matrix-synapse[postgres] - +} + +step_5_info() { echo "Create default configuration and folder structure"; } +step_5_alias() { ALIAS="defaultconfig"; } +step_5() { # Create default configuration exe python3 -m synapse.app.homeserver --server-name "$MATRIX_DOMAIN" --config-path homeserver.yaml --generate-config --report-stats=no exe deactivate @@ -111,13 +115,13 @@ step_4() { exe chown ${toolUser}:${toolGroup} "${MATRIX_HOME}" "${MATRIX_HOME}/media_store" "${MATRIX_HOME}/uploads" } -step_5_info() { echo "Configure $toolName"; } -step_5() { +step_6_info() { echo "Open $toolName configuration file"; } +step_6() { exe vi "$toolConfig" } -step_6_info() { echo "Create $toolName systemd service"; } -step_6() { +step_7_info() { echo "Create $toolName systemd service"; } +step_7() { # eval needed to expand sourced configuration variables local localService=`eval "echo \"$toolService\""` addConf -c "$localService" "$toolServiceLoc"