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:
Rob Crittenden 2010-05-06 22:13:41 -04:00
parent 3bf7268d74
commit 2876bd11dd

View File

@ -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