Unverified Commit 4c8b904c authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

nixos/linkwarden: depend on postgresql.target instead of .service (#503909)

parents 3e6dde2b 30703173
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -240,11 +240,11 @@ in
      requires = [
        "network-online.target"
      ]
      ++ lib.optionals cfg.database.createLocally [ "postgresql.service" ];
      ++ lib.optionals cfg.database.createLocally [ "postgresql.target" ];
      after = [
        "network-online.target"
      ]
      ++ lib.optionals cfg.database.createLocally [ "postgresql.service" ];
      ++ lib.optionals cfg.database.createLocally [ "postgresql.target" ];
      wantedBy = [ "multi-user.target" ];
      environment = cfg.environment // {
        # Required, otherwise chrome dumps core
@@ -262,12 +262,12 @@ in
        "network-online.target"
        "linkwarden.service"
      ]
      ++ lib.optionals cfg.database.createLocally [ "postgresql.service" ];
      ++ lib.optionals cfg.database.createLocally [ "postgresql.target" ];
      after = [
        "network-online.target"
        "linkwarden.service"
      ]
      ++ lib.optionals cfg.database.createLocally [ "postgresql.service" ];
      ++ lib.optionals cfg.database.createLocally [ "postgresql.target" ];
      wantedBy = [ "multi-user.target" ];
      environment = cfg.environment // {
        # Required, otherwise chrome dumps core