Skip to content

Commit d159e47

Browse files
authored
Fix: Element Synapse - Fixed server listening on both localhost and 0.0.0.0 (#2376)
* fixed server listening on both localhost and 0.0.0.0 * fix typo
1 parent 47fd890 commit d159e47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install/elementsynapse-install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ msg_ok "Installed Dependencies"
2626
read -p "Please enter the name for your server: " servername
2727

2828
msg_info "Installing Element Synapse"
29-
wget -O /usr/share/keyrings/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
30-
echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/matrix-org.list
29+
wget -q -O /usr/share/keyrings/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
30+
echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ $(lsb_release -cs) main" >/etc/apt/sources.list.d/matrix-org.list
3131
$STD apt-get update
3232
echo "matrix-synapse-py3 matrix-synapse/server-name string $servername" | debconf-set-selections
3333
echo "matrix-synapse-py3 matrix-synapse/report-stats boolean false" | debconf-set-selections
3434
$STD apt-get install matrix-synapse-py3 -y
35+
systemctl stop matrix-synapse
3536
sed -i 's/127.0.0.1/0.0.0.0/g' /etc/matrix-synapse/homeserver.yaml
3637
sed -i 's/'\''::1'\'', //g' /etc/matrix-synapse/homeserver.yaml
3738
systemctl enable -q --now matrix-synapse

0 commit comments

Comments
 (0)