Allow overriding the datman binary.

This commit is contained in:
Olivier 'reivilibre' 2021-07-07 23:55:16 +01:00
parent ec278f954f
commit be5fea47c6

View File

@ -96,7 +96,13 @@ pub fn backup_remote_source_to_destination(
let connection = Command::new("ssh")
.arg(&remote_host_descriptor.user_at_host)
.arg("--")
.arg("datman")
.arg(
&remote_host_descriptor
.path_to_datman
.as_ref()
.map(|x| x.as_str())
.unwrap_or("datman"),
)
.arg("_backup_source_responder")
.stdin(Stdio::piped())
.stdout(Stdio::piped())