From a539a82707bad3c644fe5537300808e040540ae5 Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Sun, 3 Oct 2021 17:29:13 +1000 Subject: [PATCH] nixos/nextcloud: Account for nix_read_secret refactor in exception msg Previously, the `nix_read_pwd` function was only used for reading the `dbpassFile`, however it has since been refactored to handle reading other secret files too. This fixes the message of the exception that is thrown in the case that the file is not present so that it no longer refers specifically to the `dbpass` file. --- nixos/modules/services/web-apps/nextcloud.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index 7794cf4518f1..e9673f8367b6 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -585,7 +585,7 @@ in { function nix_read_secret($file) { if (!file_exists($file)) { throw new \RuntimeException(sprintf( - "Cannot start Nextcloud, dbpass file %s set by NixOS doesn't seem to " + "Cannot start Nextcloud, secret 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'!", $file