"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "postinst.pl" 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.

postinst.pl  (Ocsinventory-Unix-Agent-2.8.0):postinst.pl  (Ocsinventory-Unix-Agent-2.8.1)
skipping to change at line 105 skipping to change at line 105
############ Setting default values ############ ############ Setting default values ############
my @default_configdirs = ("/etc/ocsinventory", "/usr/local/etc/ocsinventory", "/ etc/ocsinventory-agent"); my @default_configdirs = ("/etc/ocsinventory", "/usr/local/etc/ocsinventory", "/ etc/ocsinventory-agent");
unless ($config->{basevardir}) { unless ($config->{basevardir}) {
if ($^O =~ /solaris/) { if ($^O =~ /solaris/) {
$config->{basevardir} = '/var/opt/ocsinventory-agent'; $config->{basevardir} = '/var/opt/ocsinventory-agent';
} elsif ($^O =~ /bsd/) { } elsif ($^O =~ /bsd/) {
$config->{basevardir} = '/var/db/ocsinventory-agent'; $config->{basevardir} = '/var/db/ocsinventory-agent';
} else { } else {
$config->{basevardir} = '/var/lib/ocsinventory-agent' $config->{basevardir} = '/var/lib/ocsinventory-agent';
} }
} }
# Default value of SNMP timeout
unless ($config->{snmptimeout}) {
$config->{snmptimeout} = 3;
}
# Default value of SNMP retry
unless ($config->{snmpretry}) {
$config->{snmpretry} = 2;
}
############ Asking for questions ############## ############ Asking for questions ##############
unless ($nowizard) { unless ($nowizard) {
if (!ask_yn("Do you want to configure the agent", 'y')) { if (!ask_yn("Do you want to configure the agent", 'y')) {
exit 0; exit 0;
} }
unless ($configdir) { unless ($configdir) {
$configdir = getConfigDir (@default_configdirs); $configdir = getConfigDir (@default_configdirs);
#If not found #If not found
 End of changes. 2 change blocks. 
1 lines changed or deleted 11 lines changed or added

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