From 4fd99300ff1819c4fb00f1093ad9a0bf6fa38d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=A4ttasch?= <benjamin.haettasch@fachschaft.informatik.tu-darmstadt.de> Date: Tue, 31 Mar 2020 10:24:29 +0200 Subject: [PATCH] Fix documentation and util scripts --- README.md | 2 +- Utils/setup.sh | 2 +- Utils/update.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index afae3e8c..6524b6c8 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ Remember to use a secret key that is not stored in any repository or similar, an or create a new config (.conf) file (similar to ``apache-akplanning.conf``) replacing $SUBDOMAIN with the subdomain the system should be available under, and $MAILADDRESS with the e-mail address of your administrator and $PATHTO with the appropriate paths. Copy or symlink it to ``/etc/apache2/sites-available``. Then symlink it to ``sites-enabled`` e.g. by using ``ln -s /etc/apache2/sites-available/akplanning.conf /etc/apache2/sites-enabled/akplanning.conf``. 1. restart Apache ``sudo systemctl restart apache2.service`` 1. create a dedicated user, e.g. ``adduser django`` -1. transfer ownership of the folder to the new user ``chown -R django:django /srv/WannaDB`` +1. transfer ownership of the folder to the new user ``chown -R django:django /srv/AKPlanning`` 1. Copy or symlink the uwsgi config in ``uwsgi-akplanning.ini`` to ``/etc/uwsgi/apps-available/`` and then symlink it to ``/etc/uwsgi/apps-enabled/`` using e.g., ``ln -s /srv/AKPlanning/uwsgi-akplanning.ini /etc/uwsgi/apps-available/akplanning.ini`` and ``ln -s /etc/uwsgi/apps-available/akplanning.ini /etc/uwsgi/apps-enabled/akplanning.ini`` start uwsgi using the configuration file ``uwsgi --ini uwsgi-akplanning.ini`` 1. restart uwsgi ``sudo systemctl restart uwsgi`` diff --git a/Utils/setup.sh b/Utils/setup.sh index b11b29ab..5ccdf50f 100755 --- a/Utils/setup.sh +++ b/Utils/setup.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Setup AKPlanning -# execute as Utils/check.sh +# execute as Utils/setup.sh # abort on error, print executed commands set -ex diff --git a/Utils/update.sh b/Utils/update.sh index 486b52ae..d16b9ffe 100755 --- a/Utils/update.sh +++ b/Utils/update.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Update AKPlanning -# execute as Utils/check.sh +# execute as Utils/update.sh # abort on error, print executed commands set -ex -- GitLab