nixos/nextcloud: Fix invalid variable name in nextcloud-config.php
The variable $file does not exist in nix_read_secret_and_decode_json_file. This PR updates the code to use the parameter $credential_name instead.
This commit is contained in:
@@ -264,7 +264,7 @@ let
|
||||
$decoded = json_decode(nix_read_secret($credential_name), true);
|
||||
|
||||
if (json_last_error() !== JSON_ERROR_NONE) {
|
||||
error_log(sprintf("Cannot decode %s, because: %s", $file, json_last_error_msg()));
|
||||
error_log(sprintf("Cannot decode %s, because: %s", $credential_name, json_last_error_msg()));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user