summaryrefslogtreecommitdiffstats
path: root/ldap/admin/src/instindex.cpp
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2006-03-14 17:13:38 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2006-03-14 17:13:38 +0000
commit30f0cf2a817f9ae95d056b6217689a1a1f4987de (patch)
tree09ae093cdf7ed8869ea61142edbd1f9d1f8c47f0 /ldap/admin/src/instindex.cpp
parent4459889876ff88fb0dc26c2d894ca04885f7a2ba (diff)
[185364] Can't update scripts (e.g., start-slapd) in the instance
When ds_create is called with -r (update), scripts in the instance directory were not updated. They are recreated with this change.
Diffstat (limited to 'ldap/admin/src/instindex.cpp')
-rw-r--r--ldap/admin/src/instindex.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ldap/admin/src/instindex.cpp b/ldap/admin/src/instindex.cpp
index 16087c8c..6821ec8a 100644
--- a/ldap/admin/src/instindex.cpp
+++ b/ldap/admin/src/instindex.cpp
@@ -134,12 +134,16 @@ int main(int argc, char *argv[], char * /*envp*/ [])
else
fclose(infFile);
+ if (!status)
+ status = create_config_from_inf(&cf, argc, argv);
if (reconfig)
- status = reconfigure_instance(argc, argv);
- else
{
+ status = update_server(&cf);
if (!status)
- status = create_config_from_inf(&cf, argc, argv);
+ status = reconfigure_instance(argc, argv);
+ }
+ else
+ {
if (!status)
status = create_config(&cf);
if (!status)