summaryrefslogtreecommitdiffstats
path: root/ldap/admin/src/upgradeServer
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2006-02-23 19:30:41 +0000
committerRich Megginson <rmeggins@redhat.com>2006-02-23 19:30:41 +0000
commit797845db5ad09f0656bc954e335669603ef47a17 (patch)
tree7001a49061ce38fb15aa048722459d389a163ac0 /ldap/admin/src/upgradeServer
parentfbb129c7dd1d30bc83e6576e3d8e507a0ec5b6a1 (diff)
downloadds-797845db5ad09f0656bc954e335669603ef47a17.tar.gz
ds-797845db5ad09f0656bc954e335669603ef47a17.tar.xz
ds-797845db5ad09f0656bc954e335669603ef47a17.zip
Bug(s) fixed: 182613
Bug Description: Upgrade wipes out sectool wrappers Reviewed by: Pete and Nathan (Thanks!) Fix Description: It's better if we just package those wrappers instead of creating them on the fly. The new file sec_tools_wrappers is a simple shell script that assumes it's being run out of a parent/bin directory which contains a program called $0-bin, and the shared libs it needs are in parent/lib. This shell script is copied to shared/bin/certutil, shared/bin/modutil, etc. I had to create another makefile packaging macro to handle the case where you want to package a file under a different name than the original. Also 1) Add Red Hat and Fedora DS to upgradeServer 2) adminutil property directory is now adminutil-properties instead of property 3) General clean up of some upgrade install things Platforms tested: Fedora Core 4 Flag Day: no Doc impact: no
Diffstat (limited to 'ldap/admin/src/upgradeServer')
-rwxr-xr-xldap/admin/src/upgradeServer25
1 files changed, 23 insertions, 2 deletions
diff --git a/ldap/admin/src/upgradeServer b/ldap/admin/src/upgradeServer
index afc26606..18005096 100755
--- a/ldap/admin/src/upgradeServer
+++ b/ldap/admin/src/upgradeServer
@@ -326,7 +326,29 @@ sub getSlapdVersion {
sleep(1); # allow some data to accumulate in the pipe
# print "Output from $prog -v:\n";
while (<F>) {
- if (/^Netscape-Directory\/(\d+)\.(\d+)(?:\.(\d+))?(?:b\d)*\s+(\S+)/) {
+ if (/^Red Hat-Directory\/(\d+)\.(\d+)(?:\.(\d+))?(?:b\d)*\s+(\S+)/) {
+ $version = $1;
+ $minor = $2;
+ if ($4) {
+ $subminor = $3;
+ $buildNumber = $4;
+ } else {
+ $buildNumber = $3;
+ }
+ last;
+ }
+ elsif (/^Fedora-Directory\/(\d+)\.(\d+)(?:\.(\d+))?(?:b\d)*\s+(\S+)/) {
+ $version = $1;
+ $minor = $2;
+ if ($4) {
+ $subminor = $3;
+ $buildNumber = $4;
+ } else {
+ $buildNumber = $3;
+ }
+ last;
+ }
+ elsif (/^Netscape-Directory\/(\d+)\.(\d+)(?:\.(\d+))?(?:b\d)*\s+(\S+)/) {
$version = $1;
$minor = $2;
if ($4) {
@@ -414,7 +436,6 @@ sub instantiate_new_package_scripts {
"$sroot/bin/slapd/admin/scripts/template-migrate5to7",
"$sroot/bin/slapd/admin/scripts/template-migrate6to7",
"$sroot/bin/slapd/admin/scripts/template-migrateInstance7",
- "$sroot/bin/slapd/admin/scripts/template-migrateTo4",
"$sroot/bin/slapd/admin/scripts/template-migrateTo7",
"$sroot/bin/slapd/admin/scripts/template-repl-monitor-cgi.pl",
);