From 6245a9cc8e0424f7097d5b196619049f2e0e9ee9 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 4 Nov 2020 18:24:58 +0100 Subject: [PATCH] add SQL dependance --- templates/home-assistant.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/home-assistant.service.j2 b/templates/home-assistant.service.j2 index 331b488..cfe1779 100644 --- a/templates/home-assistant.service.j2 +++ b/templates/home-assistant.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Home Assistant -After=network-online.target +After=network-online.target {{ 'postgresql.service' if hass_DB_type == 'postgres' else mysqld.service hass_DB_type == 'mysql' }} [Service] Type=simple