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 committed 2010-05-07 12:02:12 -04:00
1 parent 3bf7268d74
commit 2876bd11dd
1 file changed
+5 -1
+5 -1
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