Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > media > main-release > by-pkgid > 72dd22c20874fcc399ef4ec5ea9bf0db > scriptlet

mysql-5.5.15-1.x86_64.rpm

PREIN

/bin/sh
# enable plugins
if [ -f /etc/my.cnf ]; then
    perl -pi -e "s|^#plugin-load|plugin-load|g" /etc/my.cnf
    perl -pi -e "s|^#federated|federated|g" /etc/my.cnf
fi

PREUN

/bin/sh
/usr/share/rpm-helper/del-service mysql $1 mysqld

POSTIN

/bin/sh
# Change permissions so that the user that will run the MySQL daemon
# owns all needed files.
chown -R mysql:mysql /var/lib/mysql /var/run/mysqld /var/log/mysqld

# make sure the /var/lib/mysql directory can be accessed
chmod 711 /var/lib/mysql

/usr/share/rpm-helper/add-service mysql $1 mysqld

POSTUN

/bin/sh
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/mysqld ]; then
        /etc/rc.d/init.d/mysqld restart > /dev/null 2>/dev/null || :
    fi
fi