diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-12-10 18:28:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 18:28:50 +0100 |
commit | 21be5b00dafa72e188f7bfa4301f99f9cd1d59f5 (patch) | |
tree | 236d856ba0b62895b56e38e63d7a531b45395d90 /nixos/modules | |
parent | 1446a18718c2ed5a9540e377c9bc6b0da4c59da2 (diff) | |
parent | 81662d4798fb806522f295a338dc3916d962f57e (diff) |
Merge pull request #106473 from Ma27/improve-nextcloud-error
nixos/nextcloud: improve error message for invalid `dbpassFile`
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/web-apps/nextcloud.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index 53c2ab76fdfa..0dad85d681a9 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -391,7 +391,9 @@ in { $file = "${c.dbpassFile}"; if (!file_exists($file)) { throw new \RuntimeException(sprintf( - "Cannot start Nextcloud, dbpass file %s set by NixOS doesn't exist!", + "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'!", $file )); } |