← Back to team overview

ius-coredev team mailing list archive

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

 

This has to be a regression....  Or an old version of mysql51.... I know we've removed that before.  What version of mysql51 are you working with?

Sent from my iPhone

On Nov 30, 2011, at 11:36 AM, "Mark McKinstry" <898228@xxxxxxxxxxxxxxxxxx> wrote:

> Public bug reported:
> 
> 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
> $
> 
> ** Affects: ius
>     Importance: Undecided
>         Status: New
> 
> -- 
> 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:
>  New
> 
> 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
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~ius-coredev
> Post to     : ius-coredev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ius-coredev
> More help   : https://help.launchpad.net/ListHelp


References