Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > f36cb9587ccdbe8199212adf9b6d3e2a > scriptlet

mariadb-common-10.1.25-1.mga6.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