Selaa lähdekoodia

Matrix daemon tweaks

Bob Mottram 8 vuotta sitten
vanhempi
commit
07b224d9fe
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      src/freedombone-app-matrix

+ 2
- 2
src/freedombone-app-matrix Näytä tiedosto

@@ -342,14 +342,14 @@ function install_matrix {
342 342
     chown -R matrix:matrix $MATRIX_DATA_DIR
343 343
 
344 344
     echo '[Unit]' > /etc/systemd/system/matrix.service
345
-    echo 'Description=Matrix federated messaging' >> /etc/systemd/system/matrix.service
345
+    echo 'Description=Synapse Matrix homeserver' >> /etc/systemd/system/matrix.service
346 346
     echo 'After=network.target nginx.target' >> /etc/systemd/system/matrix.service
347 347
     echo '' >> /etc/systemd/system/matrix.service
348 348
     echo '[Service]' >> /etc/systemd/system/matrix.service
349 349
     echo 'Type=simple' >> /etc/systemd/system/matrix.service
350 350
     echo 'User=matrix' >> /etc/systemd/system/matrix.service
351 351
     echo "WorkingDirectory=/etc/matrix" >> /etc/systemd/system/matrix.service
352
-    echo "ExecStart=/usr/bin/python -m synapse.app.homeserver --config-path ${MATRIX_DATA_DIR}/homeserver.yaml" >> /etc/systemd/system/matrix.service
352
+    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
353 353
     echo 'Restart=always' >> /etc/systemd/system/matrix.service
354 354
     echo 'RestartSec=10' >> /etc/systemd/system/matrix.service
355 355
     echo '' >> /etc/systemd/system/matrix.service