Subversion Repositories camp_sysinfo_client_3

Rev

Rev 103 | Rev 107 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 103 Rev 104
Line 39... Line 39...
39
our $dryRun;
39
our $dryRun;
40
our $clientName = '';
40
our $clientName = '';
41
our $serialNumber = '';
41
our $serialNumber = '';
42
our $hostname = '';
42
our $hostname = '';
43
 
43
 
-
 
44
 
-
 
45
 
44
my @installDirs = ( '/opt/camp/sysinfo-client', '/usr/local/opt/camp/sysinfo-client' );
46
my @installDirs = ( '/opt/camp/sysinfo-client', '/usr/local/opt/camp/sysinfo-client' );
45
my @confDirs =    ( '/etc/camp/sysinfo-client', '/usr/local/etc/camp/sysinfo-client' );
47
my @confDirs =    ( '/etc/camp/sysinfo-client', '/usr/local/etc/camp/sysinfo-client' );
46
 
48
 
47
 
49
 
48
our @moduleDirs = ( '/opt/camp/sysinfo-client/modules', '/etc/camp/sysinfo-client/modules' );
50
our @moduleDirs = ( '/opt/camp/sysinfo-client/modules', '/etc/camp/sysinfo-client/modules' );
Line 331... Line 333...
331
   for ( my $i = 0; $i < @confDirs; $i++ ) {
333
   for ( my $i = 0; $i < @confDirs; $i++ ) {
332
      if ( -d $confDirs[ $i ] ) {
334
      if ( -d $confDirs[ $i ] ) {
333
         return ( $confDirs[$i],  $confName );
335
         return ( $confDirs[$i],  $confName );
334
      }
336
      }
335
   }
337
   }
-
 
338
   return ( '', $confName );
336
}
339
}
-
 
340
 
-
 
341
 
337
   
342
 
338
 
343
 
339
1;
344
1;