mirror of
https://github.com/webmin/webmin.git
synced 2025-08-01 15:36:00 +00:00
Fail fast if not in fast RPC mode
This commit is contained in:
@ -115,6 +115,13 @@ foreach $s (@run) {
|
|||||||
# Run the command in a subprocess
|
# Run the command in a subprocess
|
||||||
close($rh);
|
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",
|
&remote_foreign_require($s->{'host'}, "webmin",
|
||||||
"webmin-lib.pl");
|
"webmin-lib.pl");
|
||||||
if ($inst_error_msg) {
|
if ($inst_error_msg) {
|
||||||
|
Reference in New Issue
Block a user