← Back to team overview

ius-coredev team mailing list archive

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

 

Thank you for this report Mark.

I'm going to submit a build for MySQL51 5.1.60-2 which will remove the
%postun.

I will let you know when this build is in testing.

Jeffrey-

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