mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 20:15:55 +00:00
report: set timeout and PATH env only locally
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fb925d656a
commit
73cdcc98be
@ -5,9 +5,6 @@ use warnings;
|
|||||||
|
|
||||||
use PVE::Tools;
|
use PVE::Tools;
|
||||||
|
|
||||||
$ENV{'PATH'} = '/sbin:/bin:/usr/sbin:/usr/bin';
|
|
||||||
|
|
||||||
my $cmd_timeout = 10; # generous timeout
|
|
||||||
|
|
||||||
my $init_report_cmds = sub {
|
my $init_report_cmds = sub {
|
||||||
# NOTE: always add new sections to the report_order array!
|
# NOTE: always add new sections to the report_order array!
|
||||||
@ -136,6 +133,9 @@ sub generate {
|
|||||||
$report .= shift . "\n";
|
$report .= shift . "\n";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
local $ENV{'PATH'} = '/sbin:/bin:/usr/sbin:/usr/bin';
|
||||||
|
my $cmd_timeout = 10; # generous timeout
|
||||||
|
|
||||||
my $run_cmd_params = {
|
my $run_cmd_params = {
|
||||||
outfunc => $record_output,
|
outfunc => $record_output,
|
||||||
errfunc => $record_output,
|
errfunc => $record_output,
|
||||||
|
Loading…
Reference in New Issue
Block a user