diff --git a/docs/chapters/deploying.txt b/docs/chapters/deploying.txt index b25e1b7566..e819a69216 100644 --- a/docs/chapters/deploying.txt +++ b/docs/chapters/deploying.txt @@ -158,9 +158,9 @@ For another setup that offers more performance and scalability refer to the .. code-block:: bash - sudo mayan MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}" \ + sudo -u mayan MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}" \ MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \ - |MAYAN_BIN| platformtemplate supervisord > |MAYAN_SUPERVISOR_CONF| + |MAYAN_BIN| platformtemplate supervisord | sudo sh -c "cat > |MAYAN_SUPERVISOR_CONF|" #. Configure Redis: diff --git a/docs/releases/3.3.2.txt b/docs/releases/3.3.2.txt index fa70c5bf78..a5f5eaa03b 100644 --- a/docs/releases/3.3.2.txt +++ b/docs/releases/3.3.2.txt @@ -128,18 +128,18 @@ Upgrade steps from any previous version of Mayan EDMS .. code-block:: bash - sudo sh -c "MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \ + sudo -u mayan MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \ MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \ MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \ - |MAYAN_BIN| platformtemplate supervisord > |MAYAN_SUPERVISOR_CONF|" + |MAYAN_BIN| platformtemplate supervisord | sudo sh -c "cat > |MAYAN_SUPERVISOR_CONF|" or: .. code-block:: bash - sudo sh -c "MAYAN_DATABASES=\"{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}\" \ + sudo -u mayan MAYAN_DATABASES=\"{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}\" \ MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \ - |MAYAN_BIN| platformtemplate supervisord > |MAYAN_SUPERVISOR_CONF|" + |MAYAN_BIN| platformtemplate supervisord | sudo sh -c "cat > |MAYAN_SUPERVISOR_CONF|" #. Edit the supervisord configuration file and update any setting specific to your installation: