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