diff options
Diffstat (limited to 'ldap/admin/src/scripts/template-migrateTo6')
| -rw-r--r-- | ldap/admin/src/scripts/template-migrateTo6 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ldap/admin/src/scripts/template-migrateTo6 b/ldap/admin/src/scripts/template-migrateTo6 index 2f1c8c95..eeeb9e69 100644 --- a/ldap/admin/src/scripts/template-migrateTo6 +++ b/ldap/admin/src/scripts/template-migrateTo6 @@ -39,6 +39,22 @@ # END COPYRIGHT BLOCK # +# enable the use of our bundled perldap with our bundled ldapsdk libraries +# all of this nonsense can be omitted if the mozldapsdk and perldap are +# installed in the operating system locations (e.g. /usr/lib /usr/lib/perl5) +BEGIN { + my $sroot = "{{DS-ROOT}}"; + push @INC, "$sroot/lib/perl/arch", "$sroot/lib/perl"; + if ($ENV{LD_LIBRARY_PATH}) { + $ENV{LD_LIBRARY_PATH} .= ":"; + } + $ENV{LD_LIBRARY_PATH} .= "$sroot/shared/lib"; + # this is only needed for HP/ux PA-RISC, but it doesn't hurt other platforms + if ($ENV{SHLIB_PATH}) { + $ENV{SHLIB_PATH} .= ":"; + } + $ENV{SHLIB_PATH} .= "$sroot/shared/lib"; +} # Migrate a old directory server to a 6.2 directory server ######################################################################################################## |
