mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
Check to see if we are configured before uninstalling.
Allow the --force flag to override on both install and uninstall
This commit is contained in:
parent
3bf7268d74
commit
2876bd11dd
@ -172,6 +172,10 @@ def chkconfig(name, status):
|
||||
|
||||
def uninstall(options):
|
||||
|
||||
if not fstore.has_files() and not options.force:
|
||||
print "IPA client is not configured on this system."
|
||||
return 1
|
||||
|
||||
# Remove our host cert and CA cert
|
||||
if nickname_exists("IPA CA"):
|
||||
try:
|
||||
@ -440,7 +444,7 @@ def main():
|
||||
if options.uninstall:
|
||||
return uninstall(options)
|
||||
|
||||
if fstore.has_files():
|
||||
if fstore.has_files() and not options.force:
|
||||
print "IPA client is already configured on this system."
|
||||
return 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user