Unverified Commit b95a9171 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

nixos/nextcloud: don't use pg14 for tests

This currently fails to build, so we just update it now to make sure all
tests are green with the current changes.
parent 6978b4b5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -69,14 +69,13 @@ runTest (

          services.postgresql = {
            enable = true;
            package = pkgs.postgresql_14;
          };
          systemd.services.postgresql.postStart = pkgs.lib.mkAfter ''
            password=$(cat ${config.services.nextcloud.config.dbpassFile})
            ${config.services.postgresql.package}/bin/psql <<EOF
              CREATE ROLE ${adminuser} WITH LOGIN PASSWORD '$password' CREATEDB;
              CREATE DATABASE nextcloud;
              GRANT ALL PRIVILEGES ON DATABASE nextcloud TO ${adminuser};
              ALTER DATABASE nextcloud OWNER to ${adminuser};
            EOF
          '';