Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 8b6e078da1fd28b9f043cd8791fdc1d8 > scriptlet

mariadb-common-5.5.34-2.mga4.x86_64.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 mariadb $1 mysql /var/lib/mysql /bin/bash