From 5146762c9d5de6ffeee8067b9672e0ea00220613 Mon Sep 17 00:00:00 2001 From: Aidan Fitzgerald Date: Sun, 17 Mar 2019 12:16:43 -0400 Subject: [PATCH] Reflect that SQLite is the default DBMS Signed-off-by: Aidan Fitzgerald --- roles/gitea/README.rst | 10 +++++----- roles/gitea/templates/gitea.service.j2 | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/roles/gitea/README.rst b/roles/gitea/README.rst index ce13194f9..9a49a3be2 100644 --- a/roles/gitea/README.rst +++ b/roles/gitea/README.rst @@ -12,13 +12,13 @@ Gitea should be accessible at: http://box/gitea Configuration ------------- -Gitea has been configured to work with MySQL; it can also be used with SQLite or +Gitea has been configured to work with SQLite; it can also be used with MySQL or PostgreSQL. If you want to use it with a different database, change the -``DB_TYPE`` property in ``/etc/gitea/app.ini`` [1] and change the line ``After=mysqld.service`` -in ``/etc/systemd/system/gitea.service`` [2] to one of the following: +``DB_TYPE`` property in ``/etc/gitea/app.ini`` [1] and add one of the following +lines to the ``[Unit]`` section of ``/etc/systemd/system/gitea.service`` [2]: -* SQLite: comment it out. -* Postgres: ``After=postgresql.service`` +* MySQL: ``After=mysqld.service`` +* PostgreSQL: ``After=postgresql.service`` [1] Prior to installing Gitea, instead edit: ``/opt/iiab/iiab/roles/gitea/templates/app.ini.j2`` diff --git a/roles/gitea/templates/gitea.service.j2 b/roles/gitea/templates/gitea.service.j2 index 4c2aa237e..a1cefb0e1 100644 --- a/roles/gitea/templates/gitea.service.j2 +++ b/roles/gitea/templates/gitea.service.j2 @@ -2,7 +2,6 @@ Description=Gitea (Git with a cup of tea) After=syslog.target After=network.target -After=mysqld.service [Service] # Modify these two values and uncomment them if you have