Fail fast if not in fast RPC mode

This commit is contained in:
Jamie Cameron
2018-03-26 17:00:19 -07:00
parent 252fcb8563
commit 9429f00554

View File

@ -115,6 +115,13 @@ foreach $s (@run) {
# Run the command in a subprocess
close($rh);
if (!$s->{'fast'}) {
print $wh &serialise_variable(
[ 0, "Fast RPC mode must be enabled ".
"for copies to work" ]);
exit;
}
&remote_foreign_require($s->{'host'}, "webmin",
"webmin-lib.pl");
if ($inst_error_msg) {