← Back to team overview

ius-coredev team mailing list archive

[Bug 898228] Re: mysql51 deletes the mysql user when uninstalled

 

Revision: http://bazaar.launchpad.net/~ius-
coredev/ius/mysql51/revision/58?start_revid=58

** Changed in: ius
       Status: New => In Progress

** Changed in: ius
     Assignee: (unassigned) => Jeffrey Ness (jeffrey-ness)

-- 
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/898228

Title:
  mysql51 deletes the mysql user when uninstalled

Status in IUS Community Project:
  In Progress

Bug description:
  In the %postun for mysql51, it deletes the mysql user.

  This will cause painful upgrades and downgrades from mysql51 on CentOS
  5. For example, if you try to upgrade from mysql51 to mysql55, the
  mysql user will be deleted in the process and mysql55 won't start
  because it can't read its files.

  Also, Fedora packaging says not to delete users: "We never remove
  users or groups created by packages. "
  http://fedoraproject.org/wiki/Packaging/UsersAndGroups

  Deleting the '%postun server' section will fix it.

  
  $ diff -u mysql51.spec.orig mysql51.spec
  --- mysql51.spec.orig	2011-09-19 11:42:23.000000000 -0400
  +++ mysql51.spec	2011-11-30 11:10:59.869922794 -0500
  @@ -461,10 +461,6 @@
       /sbin/ldconfig
   fi
   
  -%postun server
  -if [ $1 = 0 ] ; then
  -    userdel mysql >/dev/null 2>&1 || :
  -fi
   
   %if 0%{?_with_psa}
   %post psa-compat
  $

To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/898228/+subscriptions


References