Try without item

This commit is contained in:
Dryusdan 2023-02-06 19:55:06 +01:00
parent 882dad61f3
commit 52e96e60e2

View file

@ -3,23 +3,23 @@ Description=Vikunja
After=syslog.target
After=network.target
# Depending on how you configured Vikunja, you may want to uncomment these:
{% if item.db_type == "mysql" %}
{% if db_type == "mysql" %}
Requires=mariadb.service
{% endif %}
{% if item.db_type == "postgres" %}
{% if db_type == "postgres" %}
Requires=postgresql.service
{% endif %}
{% item.redis_enabled == "true" %}
{% redis_enabled == "true" %}
Requires=redis.service
{% endif %}
[Service]
RestartSec=2s
Type=simple
WorkingDirectory={{ item.home | default('/var/opt/vikunja') }}/vikunja
ExecStart={{ item.home | default('/var/opt/vikunja') }}/vikunja/vikunja
WorkingDirectory={{ home | default('/var/opt/vikunja') }}/vikunja
ExecStart={{ home | default('/var/opt/vikunja') }}/vikunja/vikunja
Restart=always
User={{ item.name | default('vikunja') }}
User={{ name | default('vikunja') }}
[Install]
WantedBy=multi-user.target