summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2005-09-07 00:51:53 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2005-09-07 00:51:53 +0000
commit5629a0ac2171acfe176c894a49a2bf766287fc85 (patch)
tree22332eb55b630994e001f0948ee1841dbd281289
parentcf01f197237170aca76b1359de27235a1a144bd4 (diff)
downloadds-5629a0ac2171acfe176c894a49a2bf766287fc85.tar.gz
ds-5629a0ac2171acfe176c894a49a2bf766287fc85.tar.xz
ds-5629a0ac2171acfe176c894a49a2bf766287fc85.zip
[167679] modify upgradeServer to upgrade db2index.pl
To fix the bug "[160003] db2index.pl cannot find libldap50.so if only certain parameters are used", template-db2index.pl has been modified. When upgrading existing servers, the perl scripts are not touched unless forced to. This upgradeServer provides the framework.
-rwxr-xr-xldap/admin/src/upgradeServer4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldap/admin/src/upgradeServer b/ldap/admin/src/upgradeServer
index 319bcdcf..7a462189 100755
--- a/ldap/admin/src/upgradeServer
+++ b/ldap/admin/src/upgradeServer
@@ -419,7 +419,7 @@ sub getChangelogVersion {
sub instantiate_new_scripts {
@newtemplates = (
- "$sroot/bin/slapd/admin/scripts/template-ns-newpwpolicy.pl"
+ "$sroot/bin/slapd/admin/scripts/template-db2index.pl"
);
$host = localhost;
@@ -435,7 +435,6 @@ sub instantiate_new_scripts {
foreach $src ( @newtemplates ) {
$dest = "$sroot/$prefix/$1" if $src =~ /.*template-(.*)$/;
- next if -f $dest;
unless ( open ( template, $src )) {
print "Can't open $src: $!\n";
next;
@@ -451,6 +450,7 @@ sub instantiate_new_scripts {
s#{{ROOT-DN}}#$rootdn#g;
s#{{SERVER-PORT}}#$port#g;
s#{{SERVER-NAME}}#$host#g;
+ s#{{MY-DS-ROOT}}#$sroot/$prefix#g;
printf target;
}
close template;