From ce25deeca13733dda6520e98fc9795ece46dfba5 Mon Sep 17 00:00:00 2001 From: Ariel Rin Date: Tue, 31 Oct 2023 23:52:34 +1000 Subject: [PATCH] minor formatting --- docs/features/services/discourse.md | 8 +++--- docs/installation/allianceauth.md | 3 +-- docs/installation/apache.md | 40 ++++++++++------------------- docs/installation/upgrade_python.md | 1 + docs/maintenance/troubleshooting.md | 4 +-- docs/maintenance/tuning/index.md | 2 +- 6 files changed, 22 insertions(+), 36 deletions(-) diff --git a/docs/features/services/discourse.md b/docs/features/services/discourse.md index e66a112f..a0ee6150 100644 --- a/docs/features/services/discourse.md +++ b/docs/features/services/discourse.md @@ -75,20 +75,20 @@ nano /etc/default/docker Uncomment this line: ```ini - DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" +DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" ``` Restart Docker: ```shell - service docker restart +service docker restart ``` Now build: ```shell - ./launcher bootstrap app - ./launcher start app +./launcher bootstrap app +./launcher start app ``` ## Web Server Configuration diff --git a/docs/installation/allianceauth.md b/docs/installation/allianceauth.md index 62bd523d..94936785 100644 --- a/docs/installation/allianceauth.md +++ b/docs/installation/allianceauth.md @@ -27,7 +27,6 @@ To install on your favorite flavour of Linux, identify and install equivalent pa It is recommended to ensure your OS is fully up to date before proceeding. We may also add Package Repositories here, used later in the documentation. ::::{tabs} - :::{group-tab} Ubuntu 2004, 2204 ```shell @@ -458,7 +457,7 @@ The default configuration is good enough for most installations. Additional info You will need to exit the allianceserver user back to a user with sudo capabilities to install supervisor:: ```shell - exit +exit ``` ::: diff --git a/docs/installation/apache.md b/docs/installation/apache.md index e590980f..1c173329 100644 --- a/docs/installation/apache.md +++ b/docs/installation/apache.md @@ -11,45 +11,31 @@ If you're using a small VPS to host services with very limited memory, consider ::::{tabs} :::{group-tab} Ubuntu 2004, 2204 - -::: -:::{group-tab} CentOS 7 - -::: -:::{group-tab} CentOS Stream 8 - -::: -:::{group-tab} CentOS Stream 9 - -::: -:::: -Ubuntu 1804, 2004: - ```shell apt-get install apache2 ``` - -CentOS 7: - +::: +:::{group-tab} CentOS 7 ```shell yum install httpd ``` - -Centos Stream 8, Stream 9 - +::: +:::{group-tab} CentOS Stream 8 ```shell dnf install httpd ``` +::: +:::{group-tab} CentOS Stream 9 +```shell +systemctl enable httpd +systemctl start httpd +``` + +::: +:::: CentOS 7, Stream 8, Stream 9 -```shell -systemctl enable httpd -``` - -```shell -systemctl start httpd -``` ## Configuration diff --git a/docs/installation/upgrade_python.md b/docs/installation/upgrade_python.md index c88112c5..50e7bb29 100644 --- a/docs/installation/upgrade_python.md +++ b/docs/installation/upgrade_python.md @@ -83,6 +83,7 @@ Start by navigating to your main project folder (the one that has `manage.py` in :::{note} If you installed Alliance Auth under the allianceserver user, as reccommended. Remember to switch users for easier permission management:: +::: ```bash sudo su allianceserver diff --git a/docs/maintenance/troubleshooting.md b/docs/maintenance/troubleshooting.md index c81ae285..33f1f530 100644 --- a/docs/maintenance/troubleshooting.md +++ b/docs/maintenance/troubleshooting.md @@ -25,8 +25,8 @@ Make sure the background processes are running: `supervisorctl status myauth:`. Stop celery workers with `supervisorctl stop myauth:worker` then clear the queue: ```shell - redis-cli FLUSHALL - celery -A myauth worker --purge +redis-cli FLUSHALL +celery -A myauth worker --purge ``` Press Control+C once. diff --git a/docs/maintenance/tuning/index.md b/docs/maintenance/tuning/index.md index 7b0d2fb8..005a6a9f 100644 --- a/docs/maintenance/tuning/index.md +++ b/docs/maintenance/tuning/index.md @@ -3,7 +3,7 @@ The official installation guide will install a stable version of Alliance Auth that will work fine for most cases. However, there are a lot of levels that can be used to optimize a system. For example some installations may we short on RAM and want to reduce the total memory footprint, even though that may reduce system performance. Others are fine with further increasing the memory footprint to get better system performance. :::{warning} - Tuning usually has benefits and costs and should only be performed by experienced Linux administrators who understand the impact of tuning decisions on to their system. +Tuning usually has benefits and costs and should only be performed by experienced Linux administrators who understand the impact of tuning decisions on to their system. ::: :::{toctree}