diff options
| author | Noriko Hosoi <nhosoi@redhat.com> | 2007-08-29 16:33:40 +0000 |
|---|---|---|
| committer | Noriko Hosoi <nhosoi@redhat.com> | 2007-08-29 16:33:40 +0000 |
| commit | a37d2807f559f1ccbe5923a2c7e4f5efae0dc8f1 (patch) | |
| tree | ab25d8ea574aabf0475c581020d12973006a5b28 /ldap/admin/src/scripts | |
| parent | 20a4d4d200c26b2be6db9f468693628e29793ba1 (diff) | |
| download | ds-a37d2807f559f1ccbe5923a2c7e4f5efae0dc8f1.tar.gz ds-a37d2807f559f1ccbe5923a2c7e4f5efae0dc8f1.tar.xz ds-a37d2807f559f1ccbe5923a2c7e4f5efae0dc8f1.zip | |
Resolves: #260341
Summary: Migration script references a non-existing directory
Description: added an if clause for the with_fhs_opt case
Diffstat (limited to 'ldap/admin/src/scripts')
| -rw-r--r-- | ldap/admin/src/scripts/DSMigration.pm.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ldap/admin/src/scripts/DSMigration.pm.in b/ldap/admin/src/scripts/DSMigration.pm.in index e3cda816..325aa903 100644 --- a/ldap/admin/src/scripts/DSMigration.pm.in +++ b/ldap/admin/src/scripts/DSMigration.pm.in @@ -262,8 +262,14 @@ sub migrateDatabases { my %objclasses = map { lc($_) => $_ } $ent->getValues('objectclass'); if ($cn eq 'config') { # global config my $newent = $dest->search($ent->getDN(), "base", "(objectclass=*)"); - my $newdbdir = $newent->getValues('nsslapd-directory') || - "@localstatedir@/lib/$mig->{pkgname}/$inst/db"; + my $newdbdir = ""; + if ("@with_fhs_opt@") { + $newdbdir = $newent->getValues('nsslapd-directory') || + "@localstatedir@/$mig->{pkgname}/$inst/db"; + } else { + $newdbdir = $newent->getValues('nsslapd-directory') || + "@localstatedir@/lib/$mig->{pkgname}/$inst/db"; + } debug(1, "Found ldbm database plugin config entry ", $ent->getDN(), "\n"); my $dir = $ent->getValues('nsslapd-directory'); my $homedir = $ent->getValues('nsslapd-db-home-directory'); |
