Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > 4222eabe6e90e85faf57e0d3d7cf522d > scriptlet

mysql-server-5.0.95-5.el5_9.i386.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