summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-12-10 18:28:50 +0100
committerGitHub <noreply@github.com>2020-12-10 18:28:50 +0100
commit21be5b00dafa72e188f7bfa4301f99f9cd1d59f5 (patch)
tree236d856ba0b62895b56e38e63d7a531b45395d90
parent1446a18718c2ed5a9540e377c9bc6b0da4c59da2 (diff)
parent81662d4798fb806522f295a338dc3916d962f57e (diff)
downloadnixpkgs-21be5b00dafa72e188f7bfa4301f99f9cd1d59f5.tar
nixpkgs-21be5b00dafa72e188f7bfa4301f99f9cd1d59f5.tar.gz
nixpkgs-21be5b00dafa72e188f7bfa4301f99f9cd1d59f5.tar.bz2
nixpkgs-21be5b00dafa72e188f7bfa4301f99f9cd1d59f5.tar.lz
nixpkgs-21be5b00dafa72e188f7bfa4301f99f9cd1d59f5.tar.xz
nixpkgs-21be5b00dafa72e188f7bfa4301f99f9cd1d59f5.tar.zst
nixpkgs-21be5b00dafa72e188f7bfa4301f99f9cd1d59f5.zip
Merge pull request #106473 from Ma27/improve-nextcloud-error
nixos/nextcloud: improve error message for invalid `dbpassFile`
-rw-r--r--nixos/modules/services/web-apps/nextcloud.nix4
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 53c2ab76fdf..0dad85d681a 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
                   ));
                 }