Skip to content

Commit

Permalink
nixos/nextcloud: don't use pg14 for tests
Browse files Browse the repository at this point in the history
This currently fails to build, so we just update it now to make sure all
tests are green with the current changes.
  • Loading branch information
Ma27 committed Dec 30, 2024
1 parent 6978b4b commit b95a917
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nixos/tests/nextcloud/with-declarative-redis-and-secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';

Expand Down

0 comments on commit b95a917

Please sign in to comment.