diff options
| -rw-r--r-- | nixos/modules/services/web-apps/nextcloud.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index fdbaa90ebb7a..9fba4118e152 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -841,6 +841,8 @@ in { in { wantedBy = [ "multi-user.target" ]; before = [ "phpfpm-nextcloud.service" ]; + after = optional (cfg.config.dbtype == "pgsql") "postgresql.service"; + requires = optional (cfg.config.dbtype == "pgsql") "postgresql.service"; path = [ occ ]; script = '' ${optionalString (c.dbpassFile != null) '' |
