Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 78b7d6300a5c7893c5ec01bda4162e08 > scriptlet

mysql-server-5.0.95-5.el5_9.x86_64.rpm

PREIN

/bin/sh
/usr/sbin/useradd -M -o -r -d /var/lib/mysql -s /bin/bash \
	-c "MySQL Server" -u 27 mysql > /dev/null 2>&1 || :

PREUN

/bin/sh
if [ $1 = 0 ]; then
    /sbin/chkconfig --del mysqld
fi

POSTIN

/bin/sh
if [ $1 = 1 ]; then
    /sbin/chkconfig --add mysqld
fi
/bin/chmod 0755 /var/lib/mysql
/bin/touch /var/log/mysqld.log

POSTUN

/bin/sh
if [ $1 -ge 1 ]; then
    /sbin/service mysqld condrestart >/dev/null 2>&1 || :
fi