From 05a56a9e04fb46be871e144614cefd97042316d7 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 7 Nov 2020 15:52:24 +0100 Subject: [PATCH] coorect template for postgress --- templates/systemd/gunicorn.service.j2 | 2 +- templates/systemd/supysonic-daemon.service.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/systemd/gunicorn.service.j2 b/templates/systemd/gunicorn.service.j2 index dc7d1b3..0ce995a 100644 --- a/templates/systemd/gunicorn.service.j2 +++ b/templates/systemd/gunicorn.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=gunicorn daemon for {{supysonic_name}} -After=network.target {{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service supysonic_DB_type == 'mysql' }} +After=network.target {{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service }} [Service] PIDFile=/run/gunicorn-{{supysonic_name}}/pid diff --git a/templates/systemd/supysonic-daemon.service.j2 b/templates/systemd/supysonic-daemon.service.j2 index bd4ec33..464e91a 100644 --- a/templates/systemd/supysonic-daemon.service.j2 +++ b/templates/systemd/supysonic-daemon.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Supysonic Daemon -After={{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service supysonic_DB_type == 'mysql' }} +After={{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service }} After=network.target [Service] User=root