"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Ocsinventory/Agent/Config.pm" between
Ocsinventory-Unix-Agent-2.8.0.tar.gz and Ocsinventory-Unix-Agent-2.8.1.tar.gz

About: Ocsinventory-Agent is a Linux agent for OCS Inventory NG.

Config.pm  (Ocsinventory-Unix-Agent-2.8.0):Config.pm  (Ocsinventory-Unix-Agent-2.8.1)
package Ocsinventory::Agent::Config; package Ocsinventory::Agent::Config;
use strict; use strict;
use Getopt::Long; use Getopt::Long;
our $VERSION = '2.8.0'; our $VERSION = '2.8.1';
my $basedir = ''; my $basedir = '';
my $default = { my $default = {
'daemon' => 0, 'daemon' => 0,
'debug' => 0, 'debug' => 0,
'devlib' => 0, 'devlib' => 0,
'force' => 0, 'force' => 0,
'help' => 0, 'help' => 0,
'info' => 1, 'info' => 1,
'lazy' => 0, 'lazy' => 0,
skipping to change at line 41 skipping to change at line 41
'version' => 0, 'version' => 0,
'wait' => '', 'wait' => '',
# 'xml' => 0, # 'xml' => 0,
'nosoftware'=> 0, 'nosoftware'=> 0,
'delaytime' => '3600', # max delay time (seconds) 'delaytime' => '3600', # max delay time (seconds)
'backendCollectTimeout' => '600', # timeOut of process : see Backend.pm 'backendCollectTimeout' => '600', # timeOut of process : see Backend.pm
'scanhomedirs' => 0, 'scanhomedirs' => 0,
'ssl' => 1, 'ssl' => 1,
'ca' => '', 'ca' => '',
'snmp' => 0, 'snmp' => 0,
'snmptimeout' => 3,
'snmpretry' => 2,
# Other values that can't be changed with the # Other values that can't be changed with the
# CLI parameters # CLI parameters
'VERSION' => $VERSION, 'VERSION' => $VERSION,
'deviceid' => '', 'deviceid' => '',
'basevardir'=> $basedir.'/var/lib/ocsinventory-agent', 'basevardir'=> $basedir.'/var/lib/ocsinventory-agent',
'logdir' => $basedir.'/var/log/ocsinventory-agent', 'logdir' => $basedir.'/var/log/ocsinventory-agent',
# 'pidfile' => $basedir.'/var/run/ocsinventory-agent.pid', # 'pidfile' => $basedir.'/var/run/ocsinventory-agent.pid',
}; };
skipping to change at line 140 skipping to change at line 142
"u|user=s" => \$self->{config}{user}, "u|user=s" => \$self->{config}{user},
"version" => \$self->{config}{version}, "version" => \$self->{config}{version},
"w|wait=s" => \$self->{config}{wait}, "w|wait=s" => \$self->{config}{wait},
# "x|xml" => \$self->{config}{xml}, # "x|xml" => \$self->{config}{xml},
"delaytime" => \$self->{config}{delaytime}, "delaytime" => \$self->{config}{delaytime},
"scan-homedirs" => \$self->{config}{scanhomedirs}, "scan-homedirs" => \$self->{config}{scanhomedirs},
"nolocal" => \$self->{config}{nolocal}, "nolocal" => \$self->{config}{nolocal},
"ssl=s" => \$self->{config}{ssl}, "ssl=s" => \$self->{config}{ssl},
"ca=s" => \$self->{config}{ca}, "ca=s" => \$self->{config}{ca},
"snmp=s" => \$self->{config}{snmp}, "snmp=s" => \$self->{config}{snmp},
"snmptimeout=s" => \$self->{config}{snmptimeout},
"snmpretry=s" => \$self->{config}{snmpretry},
); );
$self->help() if (!GetOptions(%options) || $self->{config}{help}); $self->help() if (!GetOptions(%options) || $self->{config}{help});
$self->version() if $self->{config}{version}; $self->version() if $self->{config}{version};
} }
sub help { sub help {
my ($self, $error) = @_; my ($self, $error) = @_;
if ($error) { if ($error) {
chomp $error; chomp $error;
 End of changes. 3 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)