From 03701eaa82af58159d378a86e13580f959ab46a3 Mon Sep 17 00:00:00 2001 From: Wikinaut Date: Tue, 23 Apr 2024 15:18:33 +0200 Subject: [PATCH] Docs: Add explicit user change to installation guide (#3972) * Update manual_smallscale.rst (I propose to) add - sudo su pretix ; and - deactivate commands to the documentation,n * Update doc/admin/installation/manual_smallscale.rst * Update doc/admin/installation/manual_smallscale.rst * Update doc/admin/installation/manual_smallscale.rst --------- Co-authored-by: Raphael Michel --- doc/admin/installation/manual_smallscale.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/admin/installation/manual_smallscale.rst b/doc/admin/installation/manual_smallscale.rst index f442ae081..804dcd2db 100644 --- a/doc/admin/installation/manual_smallscale.rst +++ b/doc/admin/installation/manual_smallscale.rst @@ -120,6 +120,7 @@ Now we will install pretix itself. The following steps are to be executed as the actually install pretix, we will create a virtual environment to isolate the python packages from your global python installation:: + # sudo -u pretix -s $ python3 -m venv /var/pretix/venv $ source /var/pretix/venv/bin/activate (venv)$ pip3 install -U pip setuptools wheel @@ -279,6 +280,7 @@ Updates To upgrade to a new pretix release, pull the latest code changes and run the following commands:: + # sudo -u pretix -s $ source /var/pretix/venv/bin/activate (venv)$ pip3 install -U --upgrade-strategy eager pretix gunicorn (venv)$ python -m pretix migrate