diff options
author | Rob Crittenden <rcritten@redhat.com> | 2012-02-28 23:05:06 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-02-29 22:36:13 +0100 |
commit | a5a55ceff3822ede55ad817ede0da5712fb75651 (patch) | |
tree | ccab9b5a4f9389bcea4cb04c3f91de9d98ca20eb /install | |
parent | 610420bd2ab976ea9e35e6d010e3f1c9f572c646 (diff) | |
download | freeipa-a5a55ceff3822ede55ad817ede0da5712fb75651.tar.gz freeipa-a5a55ceff3822ede55ad817ede0da5712fb75651.tar.xz freeipa-a5a55ceff3822ede55ad817ede0da5712fb75651.zip |
Don't delete system users that are added during installation.
We don't want to run the risk of adding a user, uninstalling it,
the system adding a new user (for another package install for example)
and then re-installing IPA. This wreaks havoc with file and directory
ownership.
https://fedorahosted.org/freeipa/ticket/2423
Diffstat (limited to 'install')
-rwxr-xr-x | install/tools/ipa-server-install | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index 47f999b4e..c379dd777 100755 --- a/install/tools/ipa-server-install +++ b/install/tools/ipa-server-install @@ -475,16 +475,6 @@ def uninstall(): sstore._load() group_exists = sstore.restore_state("install", "group_exists") - if group_exists == False: - try: - grp.getgrnam(dsinstance.DS_GROUP) - try: - ipautil.run(["/usr/sbin/groupdel", dsinstance.DS_GROUP]) - except ipautil.CalledProcessError, e: - root_logger.critical("failed to delete group %s" % e) - rv = 1 - except KeyError: - root_logger.info("Group %s already removed", dsinstance.DS_GROUP) ipaservices.knownservices.ipa.disable() @@ -855,16 +845,13 @@ def main(): try: grp.getgrnam(dsinstance.DS_GROUP) root_logger.debug("ds group %s exists" % dsinstance.DS_GROUP) - group_exists = True except KeyError: - group_exists = False args = ["/usr/sbin/groupadd", "-r", dsinstance.DS_GROUP] try: ipautil.run(args) root_logger.debug("done adding DS group") except ipautil.CalledProcessError, e: root_logger.critical("failed to add DS group: %s" % e) - sstore.backup_state("install", "group_exists", group_exists) # Configure ntpd if options.conf_ntp: |