services/nextcloud: fix a bug

This commit is contained in:
stuebinm 2022-07-06 00:05:31 +02:00
parent c3e03d1199
commit dd9200c0a4

View file

@ -768,11 +768,8 @@ in {
${optionalString (c.dbuser != null) "'dbuser' => '${c.dbuser}',"}
${optionalString (c.dbtableprefix != null) "'dbtableprefix' => '${toString c.dbtableprefix}',"}
${optionalString (c.dbpassFile != null) ''
dbpassword' => nix_read_file(
${c.dbpassFile},
"Cannot start Nextcloud, dbpass file %s set by NixOS doesn't seem to "
. "exist! Please make sure that the file exists and has appropriate "
. "permissions for user & group 'nextcloud'!"
'dbpassword' => nix_read_secret(
"${c.dbpassFile}"
),
''
}