Change ssl protocol

This commit is contained in:
Bob Mottram 2016-12-31 14:12:08 +00:00
parent 9b8f9f1e20
commit 82ae5fb152
1 changed files with 4 additions and 0 deletions

View File

@ -316,6 +316,8 @@ function upgrade_matrix {
cd /etc/sydent
pip install --upgrade --process-dependency-links .
sed -i 's|ssl.PROTOCOL_SSLv23|ssl.PROTOCOL_TLSv1|g' /usr/local/bin/register_new_matrix_user
chown -R matrix:matrix /etc/matrix
chown -R matrix:matrix /etc/sydent
chown -R matrix:matrix $MATRIX_DATA_DIR
@ -555,6 +557,8 @@ function install_home_server {
chown -R matrix:matrix /etc/matrix
chown -R matrix:matrix $MATRIX_DATA_DIR
sed -i 's|ssl.PROTOCOL_SSLv23|ssl.PROTOCOL_TLSv1|g' /usr/local/bin/register_new_matrix_user
echo '[Unit]' > /etc/systemd/system/matrix.service
echo 'Description=Synapse Matrix homeserver' >> /etc/systemd/system/matrix.service
echo 'After=network.target nginx.target' >> /etc/systemd/system/matrix.service