fix some thinkos in UPGRADE.rst

This commit is contained in:
Richard van der Hoff 2019-02-05 17:36:05 +00:00
parent 4a7524ffd3
commit 61dc53abe9

View File

@ -5,20 +5,20 @@ Before upgrading check if any special steps are required to upgrade from the
what you currently have installed to current version of synapse. The extra what you currently have installed to current version of synapse. The extra
instructions that may be required are listed later in this document. instructions that may be required are listed later in this document.
1. If synapse was installed in a virtualenv then active that virtualenv before 1. If synapse was installed in a virtualenv then activate that virtualenv before
upgrading. If synapse is installed in a virtualenv in ``~/.synapse/`` then upgrading. If synapse is installed in a virtualenv in ``~/synapse/env`` then
run: run:
.. code:: bash .. code:: bash
source ~/.synapse/bin/activate source ~/synapse/env/bin/activate
2. If synapse was installed using pip then upgrade to the latest version by 2. If synapse was installed using pip then upgrade to the latest version by
running: running:
.. code:: bash .. code:: bash
pip install --upgrade matrix-synapse pip install --upgrade matrix-synapse[all]
# restart synapse # restart synapse
synctl restart synctl restart
@ -31,8 +31,9 @@ instructions that may be required are listed later in this document.
# Pull the latest version of the master branch. # Pull the latest version of the master branch.
git pull git pull
# Update the versions of synapse's python dependencies.
python synapse/python_dependencies.py | xargs pip install --upgrade # Update synapse and its python dependencies.
pip install --upgrade .[all]
# restart synapse # restart synapse
./synctl restart ./synctl restart