summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2007-03-30 18:12:30 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2007-03-30 18:12:30 +0000
commit42567bd5b53b6b965915339963a3083519c2076d (patch)
tree9c131b0878ccea94b4918eb3856a721bc0a23db1
parentff6147ed3ef80b251f5c14aefb2fb5d5a02f2669 (diff)
downloadds-42567bd5b53b6b965915339963a3083519c2076d.tar.gz
ds-42567bd5b53b6b965915339963a3083519c2076d.tar.xz
ds-42567bd5b53b6b965915339963a3083519c2076d.zip
Resolves: #233215
Summary: verify-db.pl still assumes the db dir is always in the instance dir (Comment #8) Description: Introduced "DB-DIR" macro
-rw-r--r--ldap/admin/src/create_instance.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ldap/admin/src/create_instance.c b/ldap/admin/src/create_instance.c
index 2618caf5..9fa0c72f 100644
--- a/ldap/admin/src/create_instance.c
+++ b/ldap/admin/src/create_instance.c
@@ -702,7 +702,7 @@ char *gen_script_auto(char *s_root, char *cs_path,
{
char myperl[PATH_SIZE];
char fn[PATH_SIZE], ofn[PATH_SIZE];
- const char *table[17][2];
+ const char *table[18][2];
if (PR_FAILURE == PR_Access(cs_path, PR_ACCESS_EXISTS)) {
printf("Notice: %s does not exist, skipping %s . . .\n", cs_path, name);
@@ -760,7 +760,9 @@ char *gen_script_auto(char *s_root, char *cs_path,
table[14][1] = PRODUCT_NAME;
table[15][0] = "SERVERBIN-DIR";
table[15][1] = cf->sbindir;
- table[16][0] = table[16][1] = NULL;
+ table[16][0] = "DB-DIR";
+ table[16][1] = cf->db_dir;
+ table[17][0] = table[17][1] = NULL;
if (generate_script(ofn, fn, NEWSCRIPT_MODE, table) != 0) {
return make_error("Could not write %s to %s (%s).", ofn, fn,