summaryrefslogtreecommitdiffstats
path: root/ldap/admin/src/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/admin/src/scripts')
-rw-r--r--ldap/admin/src/scripts/template-dsml-activate.pl24
1 files changed, 24 insertions, 0 deletions
diff --git a/ldap/admin/src/scripts/template-dsml-activate.pl b/ldap/admin/src/scripts/template-dsml-activate.pl
index 7f0d93b2..b8f32f82 100644
--- a/ldap/admin/src/scripts/template-dsml-activate.pl
+++ b/ldap/admin/src/scripts/template-dsml-activate.pl
@@ -193,6 +193,30 @@ EOF
}
if ( $file eq "jvm12.conf" ) {
+ if ($^O eq "linux") {
+ # if setting Xbootclasspath, make sure crimson.jar is in it.
+ $fulljvm12 = "${SERVERROOT}${PATH}${file}";
+ $fulljvm12tmp = $fulljvm12 . ".tmp";
+ $crimsonpath = "${SERVERROOT}/bin/https/jar/crimson.jar";
+ $ibmpath = "${SERVERROOT}/bin/base/jre/lib/ibmpkcs.jar";
+ open JVM, "${fulljvm12}";
+ open JVMTMP, "> ${fulljvm12tmp}";
+ for ($line=<JVM>; $line; $line=<JVM>) {
+ if ($line =~ /Xbootclasspath/) {
+ if (!($line =~ /${crimsonpath}/)) {
+ $line =~ s/Xbootclasspath/Xbootclasspath:${crimsonpath}/;
+ }
+ if (!($line =~ /${ibmpath}/)) {
+ $line =~ s/Xbootclasspath/Xbootclasspath:${ibmpath}/;
+ }
+ }
+ print JVMTMP $line;
+ }
+ close JVMTMP;
+ close JVM;
+ unlink("${fulljvm12}");
+ rename("${fulljvm12tmp}", "${fulljvm12}");
+ }
open JVM, ">> ${SERVERROOT}${PATH}${file}";
select JVM;
print STDERR "adding necessary entry to $file.\n";