Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > a89a9138fc70beafa32a6a532c85336f > scriptlet

mysql-common-5.5.10-8.mga1.i586.rpm

PREIN

/bin/sh
# delete the mysql group if no mysql user is found, before adding the user
if [ -z "`getent passwd mysql`" ] && ! [ -z "`getent group mysql`" ]; then
    /usr/sbin/groupdel mysql 2> /dev/null || :
fi

/usr/share/rpm-helper/add-user mysql $1 mysql /var/lib/mysql /bin/bash