Merge pull request #106473 from Ma27/improve-nextcloud-error
nixos/nextcloud: improve error message for invalid `dbpassFile`
commit21be5b00dafa72e188f7bfa4301f99f9cd1d59f5
authorMaximilian Bosch <maximilian@mbosch.me>
dateThu 10 Dec 2020, 18:28 (6 years ago)
parent1446a1881662d4
nixos/modules/services/web-apps/nextcloud.nix+3−1
@@ -391,7 +391,9 @@ in {
391391 $file = "${c.dbpassFile}";
392392 if (!file_exists($file)) {
393393 throw new \RuntimeException(sprintf(
394− "Cannot start Nextcloud, dbpass file %s set by NixOS doesn't exist!",
394+ "Cannot start Nextcloud, dbpass file %s set by NixOS doesn't seem to "
395+ . "exist! Please make sure that the file exists and has appropriate "
396+ . "permissions for user & group 'nextcloud'!",
395397 $file
396398 ));
397399 }