diff options
| author | Noriko Hosoi <nhosoi@redhat.com> | 2005-09-07 00:54:20 +0000 |
|---|---|---|
| committer | Noriko Hosoi <nhosoi@redhat.com> | 2005-09-07 00:54:20 +0000 |
| commit | ec0cb7020614245375fcf6148df304e9cb42d2ba (patch) | |
| tree | 7c5ea4985588fe440cee687bed82e663d97ae2e7 /ldap/admin/src | |
| parent | fc5df4e689808710d3394ee65acbc403da24baef (diff) | |
| download | ds-ec0cb7020614245375fcf6148df304e9cb42d2ba.tar.gz ds-ec0cb7020614245375fcf6148df304e9cb42d2ba.tar.xz ds-ec0cb7020614245375fcf6148df304e9cb42d2ba.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.
Diffstat (limited to 'ldap/admin/src')
| -rwxr-xr-x | ldap/admin/src/upgradeServer | 4 |
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; |
