nixos/nextcloud: fix postgresql test
This commit is contained in:
parent
5e8ae589a4
commit
81414c0a90
@ -27,7 +27,7 @@ in {
|
|||||||
dbtype = "pgsql";
|
dbtype = "pgsql";
|
||||||
dbname = "nextcloud";
|
dbname = "nextcloud";
|
||||||
dbuser = "nextcloud";
|
dbuser = "nextcloud";
|
||||||
dbhost = "localhost:5432";
|
dbhost = "/run/postgresql";
|
||||||
inherit adminuser;
|
inherit adminuser;
|
||||||
adminpassFile = toString (pkgs.writeText "admin-pass-file" ''
|
adminpassFile = toString (pkgs.writeText "admin-pass-file" ''
|
||||||
${adminpass}
|
${adminpass}
|
||||||
@ -61,8 +61,8 @@ in {
|
|||||||
testScript = let
|
testScript = let
|
||||||
configureRedis = pkgs.writeScript "configure-redis" ''
|
configureRedis = pkgs.writeScript "configure-redis" ''
|
||||||
#!${pkgs.stdenv.shell}
|
#!${pkgs.stdenv.shell}
|
||||||
nextcloud-occ config:system:set redis 'host' --value 'localhost:6379' --type string
|
nextcloud-occ config:system:set redis 'host' --value 'localhost' --type string
|
||||||
nextcloud-occ config:system:set redis 'port' --value 0 --type integer
|
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.local --value '\OC\Memcache\Redis' --type string
|
||||||
nextcloud-occ config:system:set memcache.locking --value '\OC\Memcache\Redis' --type string
|
nextcloud-occ config:system:set memcache.locking --value '\OC\Memcache\Redis' --type string
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user