Skip to content

Commit 3a33e00

Browse files
authored
add option to enter server name (#2038)
1 parent 3aedafb commit 3a33e00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/elementsynapse-install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ $STD apt-get install -y \
2323
debconf-utils
2424
msg_ok "Installed Dependencies"
2525

26+
read -p "Please enter the name for your server: " servername
27+
2628
msg_info "Installing Element Synapse"
2729
wget -O /usr/share/keyrings/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
2830
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
2931
$STD apt-get update
30-
echo "matrix-synapse-py3 matrix-synapse/server-name string matrix" | debconf-set-selections
32+
echo "matrix-synapse-py3 matrix-synapse/server-name string $servername" | debconf-set-selections
3133
echo "matrix-synapse-py3 matrix-synapse/report-stats boolean false" | debconf-set-selections
3234
$STD apt-get install matrix-synapse-py3 -y
3335
sed -i 's/127.0.0.1/0.0.0.0/g' /etc/matrix-synapse/homeserver.yaml

0 commit comments

Comments
 (0)