about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2019-10-13 14:32:14 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2019-10-13 14:32:14 +0200
commit81414c0a9003e5469be2420e58dcab241f52696c (patch)
tree71c952fdde5b4ead0fdae22845cf38d2ae93c4e2 /nixos
parent5e8ae589a47a6206fc22ca306454cdb6f4d539be (diff)
downloadnixlib-81414c0a9003e5469be2420e58dcab241f52696c.tar
nixlib-81414c0a9003e5469be2420e58dcab241f52696c.tar.gz
nixlib-81414c0a9003e5469be2420e58dcab241f52696c.tar.bz2
nixlib-81414c0a9003e5469be2420e58dcab241f52696c.tar.lz
nixlib-81414c0a9003e5469be2420e58dcab241f52696c.tar.xz
nixlib-81414c0a9003e5469be2420e58dcab241f52696c.tar.zst
nixlib-81414c0a9003e5469be2420e58dcab241f52696c.zip
nixos/nextcloud: fix postgresql test
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/nextcloud/with-postgresql-and-redis.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/nextcloud/with-postgresql-and-redis.nix b/nixos/tests/nextcloud/with-postgresql-and-redis.nix
index 25de915c9533..f655aba9d45e 100644
--- a/nixos/tests/nextcloud/with-postgresql-and-redis.nix
+++ b/nixos/tests/nextcloud/with-postgresql-and-redis.nix
@@ -27,7 +27,7 @@ in {
           dbtype = "pgsql";
           dbname = "nextcloud";
           dbuser = "nextcloud";
-          dbhost = "localhost:5432";
+          dbhost = "/run/postgresql";
           inherit adminuser;
           adminpassFile = toString (pkgs.writeText "admin-pass-file" ''
             ${adminpass}
@@ -61,8 +61,8 @@ in {
   testScript = let
     configureRedis = pkgs.writeScript "configure-redis" ''
       #!${pkgs.stdenv.shell}
-      nextcloud-occ config:system:set redis 'host' --value 'localhost:6379' --type string
-      nextcloud-occ config:system:set redis 'port' --value 0 --type integer
+      nextcloud-occ config:system:set redis 'host' --value 'localhost' --type string
+      nextcloud-occ config:system:set redis 'port' --value 6379 --type integer
       nextcloud-occ config:system:set memcache.local --value '\OC\Memcache\Redis' --type string
       nextcloud-occ config:system:set memcache.locking --value '\OC\Memcache\Redis' --type string
     '';