mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
9409b5cf2e
commit
bf63cd30a6
@ -397,6 +397,12 @@ def uninstall(ca = False):
|
|||||||
os.remove(ANSWER_CACHE)
|
os.remove(ANSWER_CACHE)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
# ipa-client-install removes /etc/ipa/default.conf
|
||||||
|
try:
|
||||||
|
os.remove("/etc/httpd/conf.d/ipa-rewrite.conf")
|
||||||
|
os.remove("/etc/httpd/conf.d/ipa.conf")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
@ -624,7 +630,6 @@ def main():
|
|||||||
dns_forwarders = ()
|
dns_forwarders = ()
|
||||||
|
|
||||||
# Create the management framework config file and finalize api
|
# Create the management framework config file and finalize api
|
||||||
fstore.backup_file("/etc/ipa/default.conf")
|
|
||||||
fd = open("/etc/ipa/default.conf", "w")
|
fd = open("/etc/ipa/default.conf", "w")
|
||||||
fd.write("[global]\n")
|
fd.write("[global]\n")
|
||||||
fd.write("basedn=" + util.realm_to_suffix(realm_name) + "\n")
|
fd.write("basedn=" + util.realm_to_suffix(realm_name) + "\n")
|
||||||
|
@ -140,6 +140,12 @@ def uninstall(options):
|
|||||||
print "Reboot command failed to exceute. " + str(e)
|
print "Reboot command failed to exceute. " + str(e)
|
||||||
sys.exit(1)
|
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):
|
def configure_ipa_conf(fstore, cli_basedn, cli_realm, cli_domain, cli_server):
|
||||||
ipaconf = ipaclient.ipachangeconf.IPAChangeConf("IPA Installer")
|
ipaconf = ipaclient.ipachangeconf.IPAChangeConf("IPA Installer")
|
||||||
ipaconf.setOptionAssignment(" = ")
|
ipaconf.setOptionAssignment(" = ")
|
||||||
|
Loading…
Reference in New Issue
Block a user