diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index 0589351b..dfeba5b1 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -342,14 +342,14 @@ function install_matrix { chown -R matrix:matrix $MATRIX_DATA_DIR echo '[Unit]' > /etc/systemd/system/matrix.service - echo 'Description=Matrix federated messaging' >> /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 echo '' >> /etc/systemd/system/matrix.service echo '[Service]' >> /etc/systemd/system/matrix.service echo 'Type=simple' >> /etc/systemd/system/matrix.service echo 'User=matrix' >> /etc/systemd/system/matrix.service echo "WorkingDirectory=/etc/matrix" >> /etc/systemd/system/matrix.service - echo "ExecStart=/usr/bin/python -m synapse.app.homeserver --config-path ${MATRIX_DATA_DIR}/homeserver.yaml" >> /etc/systemd/system/matrix.service + echo "ExecStart=source /var/lib/matrix/.synapse/bin/activate && /usr/bin/python -m synapse.app.homeserver --config-path ${MATRIX_DATA_DIR}/homeserver.yaml" >> /etc/systemd/system/matrix.service echo 'Restart=always' >> /etc/systemd/system/matrix.service echo 'RestartSec=10' >> /etc/systemd/system/matrix.service echo '' >> /etc/systemd/system/matrix.service