--- source-trees/gt2-cvs/gram/jobmanager/setup/program/globus-job-manager-mds-provider.in.orig Thu Dec 1 09:49:36 2005 +++ source-trees/gt2-cvs/gram/jobmanager/setup/program/globus-job-manager-mds-provider.in Thu Dec 1 09:55:37 2005 @@ -180,56 +178,6 @@ } } } -else -{ - # entry was not found in file - if ( $add ) - { - # insert line in the slapd_conf file - - open(INFO, "<$slapd_conf"); - open(TMPFILE, ">$tmpfile"); - - while ($line = ) - { - chomp($line); - $line =~ s/^\s+//g; # remove leading whitespace - - $first7 = substr($line,0,7); - - if ($line_added==0) - { - if ($first7 eq "include") - { - $includes_started=1; - } - - # find the first line after the include lines that is not just a newline - if (($first7 ne "include") && - ($first7 ne "") && - ($includes_started==1)) - { - $line_added=1; - print "adding gram reporter entry in $slapd_conf\n"; - print TMPFILE "include ${globusdir}/etc/grid-info-gram-reporter.schema\n"; - print TMPFILE "include ${globusdir}/etc/grid-info-gram-rsl-reporter.schema\n"; - print TMPFILE "\n"; - } - } - - print TMPFILE "$line\n"; - } - close(TMPFILE); - close(INFO); - - system("mv $tmpfile $slapd_conf"); - } - else - { - print "gram reporter schema entries not found for removal in $slapd_conf, skipping...\n"; - } -} - print "Done\n";