Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 30f3c18a86f72f8c30d72845e9ee04f7 > scriptlet

mariadb-5.5.34-2.mga4.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
    # switch to federatedx provider
    perl -pi -e "s|;ha_federated\.so$|;ha_federatedx\.so|g" /etc/my.cnf
fi

PREUN

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

POSTIN

/bin/sh
/usr/bin/systemd-tmpfiles --create mysql.conf 
/usr/share/rpm-helper/add-service mariadb $1 mysqld

POSTUN

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