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.

(cherry picked from commit eaeb4fe04ee5a5ffae4f7dc03d3f072d59d80337)
This commit is contained in:
Maximilian Bosch 2021-08-27 20:21:25 +02:00 committed by github-actions[bot]
parent 698186588f
commit 0db1a5ee44
2 changed files with 1 additions and 2 deletions

View File

@ -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"'';

View File

@ -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;