From 30f0cf2a817f9ae95d056b6217689a1a1f4987de Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Tue, 14 Mar 2006 17:13:38 +0000 Subject: [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. --- ldap/admin/src/instindex.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ldap/admin/src/instindex.cpp') 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) -- cgit