From eaeb4fe04ee5a5ffae4f7dc03d3f072d59d80337 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 27 Aug 2021 20:21:25 +0200 Subject: [PATCH] nixos/nextcloud: remove invalid `--database-table-prefix` option This doesn't work anymore and thus breaks the installation leaving a broken `/var/lib/nextcloud`. It isn't a big deal since we set this value in the override config before, so the correct table-prefix is still used. In order to confirm that, I decided to add a custom prefix to the basic test. --- nixos/modules/services/web-apps/nextcloud.nix | 2 -- nixos/tests/nextcloud/basic.nix | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index 5e15aaba0966..ba5f6582cbec 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -502,8 +502,6 @@ in { ${if c.dbport != null then "--database-port" else null} = ''"${toString c.dbport}"''; ${if c.dbuser != null then "--database-user" else null} = ''"${c.dbuser}"''; "--database-pass" = dbpass; - ${if c.dbtableprefix != null - then "--database-table-prefix" else null} = ''"${toString c.dbtableprefix}"''; "--admin-user" = ''"${c.adminuser}"''; "--admin-pass" = adminpass; "--data-dir" = ''"${cfg.home}/data"''; diff --git a/nixos/tests/nextcloud/basic.nix b/nixos/tests/nextcloud/basic.nix index 76f7f68dc960..c4ce34748ace 100644 --- a/nixos/tests/nextcloud/basic.nix +++ b/nixos/tests/nextcloud/basic.nix @@ -37,6 +37,7 @@ in { config = { # Don't inherit adminuser since "root" is supposed to be the default inherit adminpass; + dbtableprefix = "nixos_"; }; autoUpdateApps = { enable = true;