diff options
Diffstat (limited to 'ldap')
-rw-r--r-- | ldap/admin/src/scripts/DSCreate.pm.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ldap/admin/src/scripts/DSCreate.pm.in b/ldap/admin/src/scripts/DSCreate.pm.in index 43fd1d9d..71559082 100644 --- a/ldap/admin/src/scripts/DSCreate.pm.in +++ b/ldap/admin/src/scripts/DSCreate.pm.in @@ -1109,6 +1109,16 @@ sub removeDSInstance { # Finally, config dir push @errs, remove_tree($entry, "nsslapd-schemadir", $instname, 1, "\.db\$"); + # Remove the instance specific initconfig script + if ( -f "@initconfigdir@/@package_name@-$inst" ) { + my $rc = unlink("@initconfigdir@/@package_name@-$inst"); + if ( 0 == $rc ) + { + push @errs, [ 'error_removing_path', "@initconfigdir@/@package_name@-$inst", $! ]; + debug(1, "Warning: @initconfigdir@/@package_name@-$inst was not removed. Error: $!\n"); + } + } + # remove the selinux label from the ports if needed if ("@with_selinux@") { foreach my $port (@{$entry->{"nsslapd-port"}}) |