Updated the service file with Postgresql
When the pgsql is used as backend, the gitea service must wait for the database.
This commit is contained in:
@@ -3,6 +3,10 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Gitea (Git with a cup of tea)
|
Description=Gitea (Git with a cup of tea)
|
||||||
After=network.target
|
After=network.target
|
||||||
|
{% if gitea_database_server | default('') == "postgresql" %}
|
||||||
|
Wants=postgresql.service
|
||||||
|
After=postgresql.service
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
RestartSec=2s
|
RestartSec=2s
|
||||||
|
|||||||
Reference in New Issue
Block a user