Remove some configuration files we create upon un-installation

This is particularly important for Apache since we'd leave the web
server handling unconfigured locations.
This commit is contained in:
Rob Crittenden
2010-01-28 17:29:18 -05:00
parent 9409b5cf2e
commit bf63cd30a6
2 changed files with 12 additions and 1 deletions
@@ -140,6 +140,12 @@ def uninstall(options):
print "Reboot command failed to exceute. " + str(e)
sys.exit(1)
# Remove the IPA configuration file
try:
os.remove("/etc/ipa/default.conf")
except:
pass
def configure_ipa_conf(fstore, cli_basedn, cli_realm, cli_domain, cli_server):
ipaconf = ipaclient.ipachangeconf.IPAChangeConf("IPA Installer")
ipaconf.setOptionAssignment(" = ")